Sha256: ec17b6cf89b33fb1840d45db2fec58b2ae43c87efa99ed54adc6cb639e643fb9

Contents?: true

Size: 1.5 KB

Versions: 21

Compression:

Stored size: 1.5 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 _mce_bogus="1" class="mceItemHidden mceItemNbsp">&nbsp;</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

21 entries across 21 versions & 4 rubygems

Version Path
tinymce_rails-3.4.6 vendor/assets/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
skylinecms-3.1.0 public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
spree_editor-0.50.0 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.15 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.14 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.13 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.12 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.11 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.10 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.9 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.8 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.6 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.5 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
spree_editor-0.40.0 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.4 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.3 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.1 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.9.0 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.8.6 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js
cable-0.8.5 public/javascripts/tinymce/plugins/nonbreaking/editor_plugin_src.js