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

index 58b8066..431abab 100644 (file)
@@ -1172,15 +1172,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         }
         
         if(
-                node.nodeName == 'SPAN'
-//                !node.hasAttributes() &&
-//                node.childNodes.length == 1 &&
-//                node.firstChild.nodeName == "#text"
+                node.nodeName == 'SPAN' &&
+                !node.hasAttributes() &&
+                node.childNodes.length == 1 &&
+                node.firstChild.nodeName == "#text"
         ) {
-            console.log(node.hasAttributes());
-            console.log(node.childNodes.length);
-            console.log(node.firstChild.nodeName);
-            
             console.log('run!!!!!');
             var textNode = node.firstChild;
             console.log(textNode);