Committer: vkurkin
LJSUP-10445: Lj-cut eat my content (Opera)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 2011-11-22 10:38:40 UTC (rev 20598) +++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2011-11-22 10:56:23 UTC (rev 20599) @@ -684,7 +684,6 @@ } } } else { - selection.lock(); if (text = prompt(top.CKLang.CutPrompt, top.CKLang.ReadMore)) { var selection = new CKEDITOR.dom.selection(editor.document), ranges = selection.getRanges(), @@ -710,6 +709,7 @@ editor.insertElement(iframeClose); iframeClose.insertBeforeMe(iframeOpen); } else { + selection.lock(); startContainer = ranges[0].getTouchedStartNode(); var fragment = new CKEDITOR.dom.documentFragment(editor.document); @@ -719,9 +719,9 @@ } editor.insertElement(iframeClose); iframeClose.insertBeforeMe(fragment); + selection.unlock(); } } - selection.unlock(); CKEDITOR.note && CKEDITOR.note.hide(true); }