Sha256: b7fb019ec8de98faba48f84ca8cb52745733d01afeca403acc326520682d9a0e

Contents?: true

Size: 677 Bytes

Versions: 4

Compression:

Stored size: 677 Bytes

Contents

//= require elrte/base

/**
 * You can easily create own toolbar,
 * read how to: http://elrte.org/redmine/projects/elrte/wiki/Docs_EN#Toolbar
 */

jQuery(function($){
  var opts = {
    absoluteURLs: false,
    cssClass : 'el-rte elrte-editor',
    lang     : 'en',
    height   : 420,
    toolbar  : 'ruby_elrte',
    fmOpen : function(callback) {
      $('<div id="my_elfinder" />').elfinder({
        url : '/elfinder',
        lang : 'en',
        dialog : { width : 900, modal : true, title : 'elFinder - file manager for web', resizable: true },
        closeOnEditorCallback : true,
        editorCallback : callback
      });
    }
  };
  $('.editor').elrte(opts);
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elrte-0.0.5 lib/generators/elrte/assets/templates/3.1/elrte.js
elrte-0.0.4 lib/generators/elrte/assets/templates/3.1/elrte.js
elrte-0.0.3 lib/generators/elrte/assets/templates/3.1/elrte.js
elrte-0.0.1 lib/generators/elrte/assets/templates/3.1/elrte.js