Sha256: 8fbe332d4d0e81794a718dcffc91533c5938a60b584544666d3d7e6866b7a0ef

Contents?: true

Size: 1.33 KB

Versions: 327

Compression:

Stored size: 1.33 KB

Contents

(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})();

Version data entries

327 entries across 293 versions & 33 rubygems

Version Path
kete-tiny_mce-0.1.0 lib/tiny_mce/assets/tiny_mce/plugins/noneditable/editor_plugin.js
krasivotokak-tiny_mce-0.0.1 public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
krasivotokak-tiny_mce-0.0.2 public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
krasivotokak-tiny_mce-0.0.4 public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
krasivotokak-tiny_mce-0.1.0 lib/tiny_mce/assets/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.15 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.3.1 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.3.0 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.14 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.2.24 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.2.23 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.13 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.2.21 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.12 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.11 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.2.20 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
soapbox-0.2.18 public/soapbox/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.4.11 public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.4.10 public/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js
noodall-ui-0.5.10 vendor/assets/javascripts/tiny_mce/plugins/noneditable/editor_plugin.js