Sha256: 613d5a6ca14534b00bf2ed01cc23e373728b7bf3fb9a8ae895c598ba86028777

Contents?: true

Size: 1.31 KB

Versions: 119

Compression:

Stored size: 1.31 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

119 entries across 119 versions & 2 rubygems

Version Path
decko-0.3.2 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.3.1 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.3.0 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.2.2 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.2.1 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.2 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
decko-0.1 rails/assets/tinymce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.1.2 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.1.1 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.1.0 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.56 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.55 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.54 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.53 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.52 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.51 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.50 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.49 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.48 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js
it-logica-application-backbone-1.0.47 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin_src.js