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 (state.text !== "") {
if (node.childNodes.length) { if (node.childNodes.length) {
HTML.addElement(node,"span",{className:state.className},[state.text]); this.charList.flushText(node,state);
} else { } else {
HTML.addText(node,state.text); HTML.addText(node,state.text);
node.className = state.className; node.className = state.className;