projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a90498
)
Roo/HtmlEditorCore.js
author
Edward
<edward@roojs.com>
Tue, 23 Apr 2019 08:14:28 +0000
(16:14 +0800)
committer
Edward
<edward@roojs.com>
Tue, 23 Apr 2019 08:14:28 +0000
(16:14 +0800)
Roo/HtmlEditorCore.js
patch
|
blob
|
history
diff --git
a/Roo/HtmlEditorCore.js
b/Roo/HtmlEditorCore.js
index
8c15285
..
eee4f05
100644
(file)
--- 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);
}