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