projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6901 - CRM - allow comments in HTML for IE
[roojs1]
/
Roo
/
HtmlEditorCore.js
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
bc05123
..
a1bb73d
100644
(file)
--- a/
Roo/HtmlEditorCore.js
+++ b/
Roo/HtmlEditorCore.js
@@
-114,6
+114,11
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
*/
stylesheets: false,
*/
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,
// id of frame..
frameId: false,
@@
-1027,7
+1032,7
@@
Roo.extend(Roo.HtmlEditorCore, Roo.Component, {
// clean up silly Windows -- stuff?
return;
}
// 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;
node.parentNode.removeChild(node);
// clean up silly Windows -- stuff?
return;