From 11d83128a0d220b662eec1e4cd6da81f5b4fd10e Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2019 16:07:29 +0800 Subject: [PATCH] Roo/HtmlEditorCore.js --- Roo/HtmlEditorCore.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") { -- 2.39.2