Sha256: 085010c5a058b6a2c235e8afb5cd152a31cb3d39c189ef85f167a90dabb6e69e

Contents?: true

Size: 1.49 KB

Versions: 202

Compression:

Stored size: 1.49 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.Nonbreaking', {
		init : function(ed, url) {
			var t = this;

			t.editor = ed;

			// Register commands
			ed.addCommand('mceNonBreaking', function() {
				ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? '<span class="mceItemHidden mceVisualNbsp">&middot;</span>' : '&nbsp;');
			});

			// Register buttons
			ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'});

			if (ed.getParam('nonbreaking_force_tab')) {
				ed.onKeyDown.add(function(ed, e) {
					if (tinymce.isIE && e.keyCode == 9) {
						ed.execCommand('mceNonBreaking');
						ed.execCommand('mceNonBreaking');
						ed.execCommand('mceNonBreaking');
						tinymce.dom.Event.cancel(e);
					}
				});
			}
		},

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

		// Private methods
	});

	// Register plugin
	tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking);
})();

Version data entries

202 entries across 191 versions & 18 rubygems

Version Path
noodall-ui-0.5.0.pre.6 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.5.0.pre.5 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.5.0.pre.4 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.5.0.pre.3 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.5.0.pre.2 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.9 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.8 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.7 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.6 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.4.6 public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.5.0.pre.1 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.5 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.3.19 public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.4.5 public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.4 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
muck-activities-3.2.1 test/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
noodall-ui-0.4.4 public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
muck-services-3.3.3 test/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.3 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
soapbox-0.2.2 public/soapbox/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js