Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r20112: LJSUP-9872: Js error when click lj-cut i...

Committer: vkurkin
LJSUP-9872: Js error when click lj-cut in IE8 (with paragraph)
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-09-22 08:44:38 UTC (rev 20111)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-22 08:56:16 UTC (rev 20112)
@@ -775,7 +775,7 @@
 						if (text) {
 							var selection = new CKEDITOR.dom.selection(editor.document);
 
-							ljNoteData.LJCut.node = new CKEDITOR.dom.element('lj:cut', editor.document);
+							ljNoteData.LJCut.node = new CKEDITOR.dom.element.get(document.createElement('lj:cut'));
 							ljNoteData.LJCut.node.setAttribute('lj-cmd', 'LJCut');
 							if (text != top.CKLang.ReadMore) {
 								ljNoteData.LJCut.node.setAttribute('text', text);

Tags: b_vladi, js, livejournal
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