projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6c2fdf8
)
Roo/htmleditor/FilterKeepChildren.js
author
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:17:32 +0000
(10:17 +0800)
committer
Alan
<alan@roojs.com>
Thu, 7 Jul 2022 02:17:32 +0000
(10:17 +0800)
Roo/htmleditor/FilterKeepChildren.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/FilterKeepChildren.js
b/Roo/htmleditor/FilterKeepChildren.js
index
29b62dd
..
15b6476
100644
(file)
--- a/
Roo/htmleditor/FilterKeepChildren.js
+++ b/
Roo/htmleditor/FilterKeepChildren.js
@@
-32,11
+32,12
@@
Roo.extend(Roo.htmleditor.FilterKeepChildren, Roo.htmleditor.FilterBlack,
//remove first..
for (var i = 0; i < ar.length; i++) {
//remove first..
for (var i = 0; i < ar.length; i++) {
- if (ar[i].nodeType == 1) {
+ var e = ar[i];
+ if (e.nodeType == 1) {
if (
if (
- (typeof(this.tag) == 'object' && this.tag.indexOf(
ar[i]
.tagName) > -1)
+ (typeof(this.tag) == 'object' && this.tag.indexOf(
e
.tagName) > -1)
|| // array and it matches
|| // array and it matches
- (typeof(this.tag) == 'string' && this.tag ==
ar[i]
.tagName)
+ (typeof(this.tag) == 'string' && this.tag ==
e
.tagName)
||
(e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1)
||
||
(e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1)
||