Sha256: d59dc9db52561fd3cb55ed3113105f69b2c3a527063cd404f5c04c12f29634e0
Contents?: true
Size: 1.24 KB
Versions: 70
Compression:
Stored size: 1.24 KB
Contents
/** * Modified version of advimage * @author Tatamae * @copyright Copyright © 2009, Tatemae. */ (function() { tinymce.create('tinymce.plugins.MuckImagePlugin', { init : function(ed, url) { // Register commands ed.addCommand('mceMuckImage', function() { var e = ed.selection.getNode(); // Internal image object like a flash placeholder if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1) return; ed.windowManager.open({ file : jQuery('#tiny_mce_images_path').val(), width : parseInt(jQuery('#tiny_mce_images_width').val()) + parseInt(ed.getLang('muckfile.delta_width', 0)), height : parseInt(jQuery('#tiny_mce_images_height').val()) + parseInt(ed.getLang('muckfile.delta_height', 0)), inline : 1 }, { plugin_url : url }); }); // Register buttons ed.addButton('muckimage', { title : 'Upload Images', cmd : 'mceMuckImage', image : '/images/tinymce/image.jpg' }); }, getInfo : function() { return { longname : 'Advanced file', author : 'Tatemae', authorurl : 'http://Tatemae.com', version : tinymce.majorVersion + "." + tinymce.minorVersion }; } }); // Register plugin tinymce.PluginManager.add('muckimage', tinymce.plugins.MuckImagePlugin); })();
Version data entries
70 entries across 32 versions & 8 rubygems