Committer: vkurkin
LJSUP-9542: RTE - lj-map placeholderU 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-20 06:09:45 UTC (rev 20079) +++ trunk/htdocs/js/ck/plugins/livejournal/plugin.js 2011-09-20 06:09:51 UTC (rev 20080) @@ -1163,8 +1163,8 @@ }, 'lj-map': function(element) { return new CKEDITOR.htmlParser.fragment.fromHtml('' + '<div style="' + 'width: ' + (isNaN(element.attributes - .width) ? 100 : element.attributes.width) + 'px;' + 'height: ' + (isNaN(element.attributes - .height) ? 100 : element.attributes + .width) ? 500 : element.attributes.width) + 'px;' + 'height: ' + (isNaN(element.attributes + .height) ? 350 : element.attributes .height) + 'px;"' + 'contentEditable="false"' + 'lj-url="' + (encodeURIComponent(element.attributes .url) || '') + '"' + 'class="lj-map"><p>map</p>' + '</div>').children[0]; },