X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fhtmleditor%2FFilter.js;h=e1a89cbc7f521f7f7282e404295f91aca8a64dbf;hb=361aa4f42524692092b2457d236a584e81252581;hp=46035687b777aab92633f449430bfa62a518a0ac;hpb=79dceb4db132cf65b29faaf2cc5d6bc7b8267d4e;p=roojs1 diff --git a/Roo/htmleditor/Filter.js b/Roo/htmleditor/Filter.js index 46035687b7..e1a89cbc7f 100644 --- a/Roo/htmleditor/Filter.js +++ b/Roo/htmleditor/Filter.js @@ -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); }