projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8a7906
)
Roo/htmleditor/FilterKeepChildren.js
author
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:15:53 +0000
(10:15 +0800)
committer
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:15:53 +0000
(10:15 +0800)
Roo/htmleditor/FilterKeepChildren.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterKeepChildren.js
b/Roo/htmleditor/FilterKeepChildren.js
index
ab7054d
..
14989b9
100644
(file)
--- a/
Roo/htmleditor/FilterKeepChildren.js
+++ b/
Roo/htmleditor/FilterKeepChildren.js
@@
-38,7
+38,9
@@
Roo.extend(Roo.htmleditor.FilterKeepChildren, Roo.htmleditor.FilterBlack,
|| // array and it matches
(typeof(this.tag) == 'string' && this.tag == ar[i].tagName)
||
- this.cleanNameSpace && ar[i].tagName.match(/:/)
+ (e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1)
+ ||
+ (e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'string' && this.tag == ":")
) {
this.replaceTag(ar[i]); // child is blacklisted as well...
continue;