Use flushText() rather than adding the text by hand.
This commit is contained in:
parent
87abfa1085
commit
0306af8564
|
@ -650,7 +650,7 @@
|
|||
}
|
||||
if (state.text !== "") {
|
||||
if (node.childNodes.length) {
|
||||
HTML.addElement(node,"span",{className:state.className},[state.text]);
|
||||
this.charList.flushText(node,state);
|
||||
} else {
|
||||
HTML.addText(node,state.text);
|
||||
node.className = state.className;
|
||||
|
|
Loading…
Reference in New Issue
Block a user