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