Sha256: 6e14db8824b5e37ebb20eb10a505bfef3cfe4b88899613d1dafadc6095f7c70b

Contents?: true

Size: 662 Bytes

Versions: 8

Compression:

Stored size: 662 Bytes

Contents

tinymce.PluginManager.add("nonbreaking",function(n){var e=n.getParam("nonbreaking_force_tab");if(n.addCommand("mceNonBreaking",function(){n.insertContent(n.plugins.visualchars&&n.plugins.visualchars.state?'<span class="mce-nbsp">&nbsp;</span>':"&nbsp;"),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),n.addButton("nonbreaking",{title:"Insert nonbreaking space",cmd:"mceNonBreaking"}),n.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),e){var a=+e>1?+e:3;n.on("keydown",function(e){if(9==e.keyCode){if(e.shiftKey)return;e.preventDefault();for(var t=0;a>t;t++)n.execCommand("mceNonBreaking")}})}});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tinymce-rails-4.1.2 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.1.0 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.28.2 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.28.1 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.28 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.26 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.19 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js
tinymce-rails-4.0.18 vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js