From 65abd45cb0e4e5aa7a237a3551e7ec917b10b27f Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 7 Jul 2022 10:15:53 +0800 Subject: [PATCH] Roo/htmleditor/FilterKeepChildren.js --- Roo/htmleditor/FilterKeepChildren.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Roo/htmleditor/FilterKeepChildren.js b/Roo/htmleditor/FilterKeepChildren.js index ab7054d132..14989b9232 100644 --- 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; -- 2.39.2