Roo/HtmlEditorCore.js
authorAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:11:06 +0000 (10:11 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 26 Sep 2019 02:11:06 +0000 (10:11 +0800)
Roo/HtmlEditorCore.js

index 25eff16..ab52b4c 100644 (file)
@@ -1045,7 +1045,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             
             if (lcname == 'span' &&
                 node.childNodes.length == 1 &&
-                node.childNodes[0].tagName.toLowerCase() == 'span'
+                node.childNodes[0].nodeName.toLowerCase() = 'span'
             ) {
                 remove_keep_children = true;
             }