(function(){var b=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(i,h){var g=this,j,a;g.editor=i;j=i.getParam("noneditable_editable_class","mceEditable");a=i.getParam("noneditable_noneditable_class","mceNonEditable");i.onNodeChange.addToTop(function(f,l,c){var d,e;d=f.dom.getParent(f.selection.getStart(),function(k){return f.dom.hasClass(k,a)});e=f.dom.getParent(f.selection.getEnd(),function(k){return f.dom.hasClass(k,a)});if(d||e){g._setDisabled(1);return false}else{g._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(f,e){var a=e.keyCode;if((a>32&&a<41)||(a>111&&a<124)){return}return b.cancel(e)},_setDisabled:function(e){var f=this,a=f.editor;tinymce.each(a.controlManager.controls,function(c){c.setDisabled(e)});if(e!==f.disabled){if(e){a.onKeyDown.addToTop(f._block);a.onKeyPress.addToTop(f._block);a.onKeyUp.addToTop(f._block);a.onPaste.addToTop(f._block)}else{a.onKeyDown.remove(f._block);a.onKeyPress.remove(f._block);a.onKeyUp.remove(f._block);a.onPaste.remove(f._block)}f.disabled=e}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})();