Fix #6901 - CRM - allow comments in HTML for IE
[roojs1] / roojs-debug.js
index a0f4ee3..47ee5d9 100644 (file)
@@ -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,