Sha256: 0a965ab1d2db017216501fbbcec1ba54593c3b7df9d4c37138ba6d59f390303b

Contents?: true

Size: 1.35 KB

Versions: 227

Compression:

Stored size: 1.35 KB

Contents

/**
 * editor_plugin_src.js
 *
 * Copyright 2009, Moxiecode Systems AB
 * Released under LGPL License.
 *
 * License: http://tinymce.moxiecode.com/license
 * Contributing: http://tinymce.moxiecode.com/contributing
 */

(function() {
	tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
		init : function(ed, url) {
			// Register commands
			ed.addCommand('mceAdvImage', function() {
				// Internal image object like a flash placeholder
				if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
					return;

				ed.windowManager.open({
					file : url + '/image.htm',
					width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
					height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
					inline : 1
				}, {
					plugin_url : url
				});
			});

			// Register buttons
			ed.addButton('image', {
				title : 'advimage.image_desc',
				cmd : 'mceAdvImage'
			});
		},

		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('advimage', tinymce.plugins.AdvancedImagePlugin);
})();

Version data entries

227 entries across 216 versions & 26 rubygems

Version Path
noodall-ui-0.5.15 vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
gluttonberg-core-2.5.4 app/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
gluttonberg-core-2.5.3 app/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
gluttonberg-core-2.5.2 app/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.3.1 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.3.0 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
gluttonberg-core-2.5.1 app/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
gluttonberg-core-2.5 app/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.5.14 vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.2.24 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.2.23 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.5.13 vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.2.21 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.5.12 vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.5.11 vendor/assets/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
spree_editor-0.70.0 vendor/assets/javascripts/tinymce/plugins/advimage/editor_plugin_src.js
soapbox-0.2.20 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
soapbox-0.2.18 public/soapbox/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.4.11 public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js
noodall-ui-0.4.10 public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js