X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2FHtmlEditorCore.js;fp=Roo%2FHtmlEditorCore.js;h=fb1f817d8945dc6156bb28bc4ac88998162c11d8;hp=a1bb73db092ee4f6225dfe4aa4ba0a412c15b23f;hb=682b55a93857ddf7a1e4c0a1876d412dbc199b0c;hpb=95d78328468f1edb0352fa1b0999841ae361327e diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index a1bb73db09..fb1f817d89 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -117,7 +117,6 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { /** * @cfg {boolean} allowComments - default false - allow comments in HTML source - by default they are stripped - if you are editing email you may need this. */ - allowComments: false, // id of frame.. frameId: false, @@ -1032,8 +1031,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { // clean up silly Windows -- stuff? return; } - if (node.nodeName == "#comment" && !this.allowComments) { - node.parentNode.removeChild(node); + if (node.nodeName == "#comment") { + if (!this.allowComments) { + node.parentNode.removeChild(node); + } // clean up silly Windows -- stuff? return; }