Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r20133: LJSUP-9902: Cannot insert few picks into...

Committer: szhirkov
LJSUP-9902: Cannot insert few picks into post
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-27 07:00:17 UTC (rev 20132)
+++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js	2011-09-27 07:16:50 UTC (rev 20133)
@@ -480,8 +480,11 @@
 						if (window.ljphotoEnabled) {
 							jQuery('#updateForm').photouploader({
 								type: 'upload'
-							}).photouploader('show').bind('htmlready', function (event, html) {
-								editor.insertElement(new CKEDITOR.dom.element.createFromHtml(html, editor.document));
+							}).photouploader('show').bind('htmlready', function (event) {
+								html = event.htmlStrings;
+								for (var i = 0, l = html.length; i < l; i++) {
+									editor.insertElement(new CKEDITOR.dom.element.createFromHtml(html[i], editor.document));
+								}
 							});
 						} else {
 							editor.openDialog('image');

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