From 1a238d43fc246857a15f922d7725bd7d6552fdfa Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2019 15:38:55 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index b99f703528..63f35a7088 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -1171,12 +1171,16 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { return; } - if(node.nodeName == 'SPAN') { + if( + node.nodeName == 'SPAN' +// !node.hasAttributes() && +// node.childNodes.length == 1 && +// node.firstChild.nodeName == "#text" + ) { console.log(node); - console.log(node.attributes); - console.log(node.classList); - console.log(node.childNodes); - console.log(node.childNodes[0].nodeName); + console.log(node.hasAttributes()); + console.log(node.childNodes.length); + console.log(node.firstChild.nodeName); } if (node.nodeName == "#text") { -- 2.39.2