fix #7922 - span inside span isue with last change
[roojs1] / roojs-debug.js
index 89fb784..3b51d8a 100644 (file)
@@ -45760,6 +45760,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);
             }