From 07d70ce58353c19432ae71ddae48efe53048a34b Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2019 16:11:13 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 58b8066bca..431abab090 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -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); -- 2.39.2