From: Edward Date: Tue, 23 Apr 2019 08:07:29 +0000 (+0800) Subject: Roo/HtmlEditorCore.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=11d83128a0d220b662eec1e4cd6da81f5b4fd10e Roo/HtmlEditorCore.js --- diff --git a/Roo/HtmlEditorCore.js b/Roo/HtmlEditorCore.js index 5711723a68..8c15285b73 100644 --- a/Roo/HtmlEditorCore.js +++ b/Roo/HtmlEditorCore.js @@ -1177,9 +1177,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { node.childNodes.length == 1 && node.firstChild.nodeName == "#text" ) { - - - + var textNode = node.firstChild; + node.parentNode.insertBefore(textNode, node); + node.parentNode.removeChild(node); } if (node.nodeName == "#text") {