fix #7922 - span inside span isue with last change
[roojs1] / Roo / htmleditor / Filter.js
index 4603568..e1a89cb 100644 (file)
@@ -88,6 +88,9 @@ Roo.htmleditor.Filter.prototype = {
         var els = dom.getElementsByTagName(this.tag);
 
         Roo.each(Array.from(els), function(e){
+            if(e.parentNode == null) {
+                return;
+            }
             if(this.replaceTag) {
                 this.replaceTag(e);
             }