X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=f155bf72c0876c95c60d9c3a46f7db4b5b15f8c7;hp=b8c37ca4753db79d1c8a246388dd271c54c871da;hb=bbea05ba2ddfd77b500f7065e9081f94e407e4d9;hpb=274e5c78a480859cbba400ebbea4d59c8b85e59d diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index b8c37ca475..f155bf72c0 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -23160,14 +23160,17 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { node.nodeName == 'SPAN' && !node.hasAttributes() && node.childNodes.length == 1 && - node.firstChild.nodeName == "#text" + node.firstChild.nodeName == "#text" ) { var textNode = node.firstChild; node.removeChild(textNode); - - node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "), node); + if (node.getAttribute('lang') != 'zh-CN') { // do not space pad on chinese characters.. + node.parentNode.insertBefore(node.ownerDocument.createTextNode(" "), node); + } node.parentNode.insertBefore(textNode, node); - node.parentNode.insertBefore(node.ownerDocument.createTextNode(" ") , node); + if (node.getAttribute('lang') != 'zh-CN') { // do not space pad on chinese characters.. + node.parentNode.insertBefore(node.ownerDocument.createTextNode(" ") , node); + } node.parentNode.removeChild(node); }