Sha256: 940cf26272252a9e4eee14bf02a9a0d2a0f5c5dd211e448b7dd8dade2cb5bc06

Contents?: true

Size: 1.43 KB

Versions: 14

Compression:

Stored size: 1.43 KB

Contents

/**
 * @author Tatemae
 * @copyright Copyright © 2009, Tatemae, All rights reserved.
 */
(function() {
	tinymce.create('tinymce.plugins.AdvancedLinkTooPlugin', {
		init : function(ed, url) {
			this.editor = ed;
			// Register commands
			ed.addCommand('mceAdvLinkToo', function() {
				var se = ed.selection;
				// No selection and not in link
				if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
					return;
				ed.windowManager.open({
					file : '/tiny_mce_links',
					width : 480 + parseInt(ed.getLang('advlinktoo.delta_width', 0)),
					height : 400 + parseInt(ed.getLang('advlinktoo.delta_height', 0)),
					inline : 1
				}, {
					plugin_url : url
				});
			});
			// Register buttons
			ed.addButton('link', {
				title : 'advlinktoo.link_desc',
				cmd : 'mceAdvLinkToo'
			});
			ed.addShortcut('ctrl+k', 'advlinktoo.advlink_desc', 'mceAdvLinkToo');
			ed.onNodeChange.add(function(ed, cm, n, co) {
				cm.setDisabled('link', co && n.nodeName != 'A');
				cm.setActive('link', n.nodeName == 'A' && !n.name);
			});
		},
		getInfo : function() {
			return {
				longname : 'Advanced link',
				author : 'Moxiecode Systems AB',
				authorurl : 'http://tinymce.moxiecode.com',
				infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
				version : tinymce.majorVersion + "." + tinymce.minorVersion
			};
		}
	});
	// Register plugin
	tinymce.PluginManager.add('advlinktoo', tinymce.plugins.AdvancedLinkTooPlugin);
})();

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
muck-contents-0.2.6 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.6 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.5 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.5 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.4 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.4 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.3 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.3 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.2 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.2 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.1 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.1 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.0 public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js
muck-contents-0.2.0 test/rails_root/public/javascripts/tiny_mce/plugins/advlinktoo/editor_plugin.js