Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22722: LJSUP-13372: RTE not disabled when maint...

Committer: anazarov
LJSUP-13372: RTE not disabled when maintainer edit entry
U   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

Tags: anazarov, js, livejournal, nfokz
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments