Sha256: 46799ec43881f543f4a24cdb594c1b82fe97e6e87071a57a8b9ca34f61be4d46

Contents?: true

Size: 1.58 KB

Versions: 20

Compression:

Stored size: 1.58 KB

Contents

/**
 * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
 *
 * @author Moxiecode
 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
 */

(function() {
	tinymce.create('tinymce.plugins.AdvancedImageTooPlugin', {
		init : function(ed, url) {
			// Register commands
			ed.addCommand('mceAdvImageToo', 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 : url + '/image.htm?path=' + jQuery('#image-path').val() + 
								'&id=' + jQuery('#parent-id').val() + 
								'&type=' + jQuery('#parent-type').val() +
								'&sessionkey=' + jQuery('#session-key').val() + 
								'&sessionid=' + jQuery('#session-id').val(),
					width : 675 + parseInt(ed.getLang('advimagetoo.delta_width', 0)),
					height : 560 + parseInt(ed.getLang('advimagetoo.delta_height', 0)),
					inline : 1
				}, {
					plugin_url : url
				});
			});

			// Register buttons
			ed.addButton('image', {
				title : 'Upload Images',
				cmd : 'mceAdvImageToo'
			});
		},

		getInfo : function() {
			return {
				longname : 'Advanced image',
				author : 'Moxiecode Systems AB',
				authorurl : 'http://tinymce.moxiecode.com',
				infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
				version : tinymce.majorVersion + "." + tinymce.minorVersion
			};
		}
	});

	// Register plugin
	tinymce.PluginManager.add('advimagetoo', tinymce.plugins.AdvancedImageTooPlugin);
})();

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
muck-blogs-0.1.8 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.11 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.10 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.9 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.8 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.7 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.7 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.6 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.6 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.5 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.5 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.4 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.4 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.1 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.2 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-contents-0.1.3 public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.1 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.2 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.3 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js
muck-blogs-0.1.0 test/rails_root/public/javascripts/tiny_mce/plugins/advimagetoo/editor_plugin_src.js