Sha256: 05b1729ba2c55bd78cc2b91dc3f0c8c989888ca41a50e85a9701072480e97576

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

<% environment.context_class.instance_eval { include MorriganEditorRails::ApplicationHelper } %>
$(function () {
    $('[morrigan-editor="true"]').each(function () {
        var container = $(this);
        var width = container.attr('editor-width');
        var height = container.attr('editor-height');
        container.morrigan_editor({
            iframeStyles: "<%= iframe_stylesheet %>",
            imageUpload: 'morrigan_editor_rails/editor_images',
            width: width,
            height: height
        });
    });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
morrigan_editor_rails-0.0.3 app/assets/javascripts/morrigan_editor_rails/main.js.erb