Sha256: 2394254d5140f2da37a09664e51c07e7ddd95386f5f2eb4403996c6f6b27279d
Contents?: true
Size: 1.25 KB
Versions: 36
Compression:
Stored size: 1.25 KB
Contents
/** * Modified version of advfile * @author Tatamae * @copyright Copyright © 2009, Tatemae. */ (function() { tinymce.create('tinymce.plugins.AdvancedFileTooPlugin', { init : function(ed, url) { // Register commands ed.addCommand('mceAdvFileToo', function() { var e = ed.selection.getNode(); // Internal file object like a flash placeholder if (ed.dom.getAttrib(e, 'class').indexOf('mceItem') != -1) return; ed.windowManager.open({ file : jQuery('#tiny_mce_files_path').val(), width : parseInt(jQuery('#tiny_mce_files_width').val()) + parseInt(ed.getLang('advfiletoo.delta_width', 0)), height : parseInt(jQuery('#tiny_mce_files_height').val()) + parseInt(ed.getLang('advfiletoo.delta_height', 0)), inline : 1 }, { plugin_url : url }); }); // Register button ed.addButton('file', { title : 'Upload Files', cmd : 'mceAdvFileToo', image : '/images/tinymce/upload.gif' }); }, getInfo : function() { return { longname : 'Advanced file', author : 'Tatemae', authorurl : 'http://Tatemae.com', version : tinymce.majorVersion + "." + tinymce.minorVersion }; } }); // Register plugin tinymce.PluginManager.add('advfiletoo', tinymce.plugins.AdvancedFileTooPlugin); })();
Version data entries
36 entries across 9 versions & 1 rubygems