can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19925: LJSV-1766: RTE does not keep custom lj-c...

Committer: dpetrov
LJSV-1766: RTE does not keep custom lj-cut text upon edit
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-01 07:32:18 UTC (rev 19924)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-01 07:54:56 UTC (rev 19925)
@@ -1094,6 +1094,7 @@
 						var fakeElement = new CKEDITOR.htmlParser.element('div');
 						fakeElement.attributes['lj-cmd'] = 'LJCut';
 						fakeElement.attributes['class'] = 'lj-cut';
+						fakeElement.attributes['text'] = element.attributes.text || "";
 						fakeElement.children = element.children;
 						return fakeElement;
 					},

Tags: can3p, 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