X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-debug.js;fp=roojs-debug.js;h=47ee5d9a3b376770820839dfc93ac50de08cc7bf;hp=a0f4ee3d593e0913fd70c489529e3c0f5ebeef95;hb=95d78328468f1edb0352fa1b0999841ae361327e;hpb=8243a30daf04298fc849760aa49bd3045a075e1a diff --git a/roojs-debug.js b/roojs-debug.js index a0f4ee3d59..47ee5d9a3b 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -43770,6 +43770,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { */ stylesheets: false, + /** + * @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, @@ -44683,7 +44688,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { // clean up silly Windows -- stuff? return; } - if (node.nodeName == "#comment") { + if (node.nodeName == "#comment" && !this.allowComments) { node.parentNode.removeChild(node); // clean up silly Windows -- stuff? return; @@ -45480,6 +45485,10 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, { * */ white: false, + /** + * @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,