summaryrefslogtreecommitdiff
path: root/httemplate/elements/ckeditor
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-02-12 17:08:35 -0800
committerMark Wells <mark@freeside.biz>2015-02-12 17:08:35 -0800
commit82abe98b0919ac63d1e2b5c3e1b35d7abc8eea52 (patch)
treeb68121773b33a04b19d90a46d288a2ebf9a33036 /httemplate/elements/ckeditor
parent5e63471800ab8951f2d0f5c679215889fba659db (diff)
better fix for #24331
Diffstat (limited to 'httemplate/elements/ckeditor')
-rw-r--r--httemplate/elements/ckeditor/plugins/blockprotect/plugin.js8
1 files changed, 2 insertions, 6 deletions
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(/&nbsp;/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 <span>
- } else {
- return el.outerHTML;
- }
+ return el.outerHTML;
};
var block_writeHtml = function( element ) {
// to unescape the element contents, write it out as HTML,