From: Edward Date: Tue, 23 Apr 2019 08:10:08 +0000 (+0800) Subject: Roo/HtmlEditorCore.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=989e59bd4cc7010157921e098582427ca22811d2 Roo/HtmlEditorCore.js --- diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 431abab090..58b8066bca 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -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);