Sha256: 07b1f1ca1b3c515d5da5a728deeb48da9f71e11decac01e773966174abf42b13
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
/** * editor_plugin_src.js * * Copyright 2010, Cloudware.it * Released under LGPL License. * */ (function() { tinymce.create('tinymce.plugins.RMceUploadrPlugin', { init : function(ed, url) { // Register commands ed.addCommand('rmceUploadr', function() { // Internal image object like a flash placeholder if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) return; ed.windowManager.open({ file: '/rmce_uploadr/images', width : 540, height : 420, inline : 1 }, { plugin_url : url }); }); // Register buttons ed.addButton('image', { title : 'Insert an Image', image : '/images/rmce_uploadr_icon.png', cmd : 'rmceUploadr' }); }, getInfo : function() { return { longname : 'Ruby MCE Image Uploadr', author : 'Cloudware.it', authorurl : 'http://cloudware.it', infourl : 'http://cloudware.it/pages/contrib#rmce_uploadr', version : tinymce.majorVersion + "." + tinymce.minorVersion }; } }); // Register plugin tinymce.PluginManager.add('rmce_uploadr', tinymce.plugins.RMceUploadrPlugin); })();
Version data entries
3 entries across 3 versions & 1 rubygems