Committer: anazarov
LJSUP-13372: RTE not disabled when maintainer edit entryU trunk/htdocs/js/ck/plugins/livejournal/plugin.js
Modified: trunk/htdocs/js/ck/plugins/livejournal/plugin.js =================================================================== --- trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2012-08-22 14:45:54 UTC (rev 22721) +++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2012-08-23 08:47:51 UTC (rev 22722) @@ -369,7 +369,7 @@ function onLoadFrame() { var win = this.$.contentWindow, doc = win.document, iframeBody = new CKEDITOR.dom.element.get(doc.body); - if (iframeBody.on) { + if (iframeBody.on && !Site.page.disabled_input) { iframeBody.on('dblclick', onDoubleClick); iframeBody.on('click', onClickFrame); iframeBody.on('keyup', onKeyUp); @@ -576,11 +576,13 @@ }); } - editor.document.on('click', findLJTags); - editor.document.on('mouseout', CKEDITOR.note.hide); - editor.document.on('mouseover', findLJTags); - editor.document.getBody().on('keyup', onKeyUp); - updateFrames(); + if (!Site.page.disabled_input) { + editor.document.on('click', findLJTags); + editor.document.on('mouseout', CKEDITOR.note.hide); + editor.document.on('mouseover', findLJTags); + editor.document.getBody().on('keyup', onKeyUp); + updateFrames(); + } }); // LJ Buttons