Use flushText() rather than adding the text by hand.

This commit is contained in:
Davide P. Cervone 2015-03-17 12:31:09 -04:00
parent 87abfa1085
commit 0306af8564

View File

@ -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;