X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fckeditor%2Fplugins%2Fblockprotect%2Fplugin.js;h=e4ef3916783d288389244ec623527193582f1e73;hb=3888fd6d1902f93c19d62df186e04617357f58c5;hp=376d2bc3c4b7b8c23f8cbc2c26a2d5cf36c6146f;hpb=0608c88ad776f249adde35abe233de8fb1986c71;p=freeside.git diff --git a/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js b/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js index 376d2bc3c..e4ef39167 100644 --- a/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js +++ b/httemplate/elements/ckeditor/plugins/blockprotect/plugin.js @@ -7,6 +7,7 @@ var delim_c = '}'; var create_block = function(content, inside) { + if (inside) return content; // fix nbsp's content = content.replace(/ /gi, ' '); // escape the content @@ -18,12 +19,7 @@ el.innerText = content; } el.setAttribute('class', 'cke_blockprotect'); - if (inside) { - return el.innerHTML; // escapes the contents but doesn't wrap - // them in a - } else { - return el.outerHTML; - } + return el.outerHTML; }; var block_writeHtml = function( element ) { // to unescape the element contents, write it out as HTML,