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

index 431abab..58b8066 100644 (file)
@@ -1172,11 +1172,15 @@ 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);