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 (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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user