Committer: szhirkov
LJSUP-9902: Cannot insert few picks into postU 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');