Roo/HtmlEditorCore.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2019 08:07:29 +0000 (16:07 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2019 08:07:29 +0000 (16:07 +0800)
Roo/HtmlEditorCore.js

index 5711723..8c15285 100644 (file)
@@ -1177,9 +1177,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                 node.childNodes.length == 1 &&
                 node.firstChild.nodeName == "#text"
         ) {
-            
-            
-            
+            var textNode = node.firstChild;
+            node.parentNode.insertBefore(textNode, node);
+            node.parentNode.removeChild(node);
         }
         
         if (node.nodeName == "#text") {