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

Version Path
muck-contents-3.1.6 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.6 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.5 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.5 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.4 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.4 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.3 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.3 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.2 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.2 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.1 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.1.1 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.0 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.1.0 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.0.2 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.0.2 test/rails_test/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-contents-3.0.2 test/rails_test/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-contents-3.0.2 public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js
muck-profiles-3.0.2 test/rails_test/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin.js
muck-profiles-3.0.2 test/rails_test/public/javascripts/tiny_mce/plugins/muckimage/editor_plugin_src.js