|
|
@@ -777,12 +777,10 @@ Vue.component('spaceEditor', {
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
- var addFirstLineIndent = function (node) {
|
|
|
+ var trimFirstTextIndent = function (node) {
|
|
|
var textNode = findFirstTextNode(node);
|
|
|
if (textNode) {
|
|
|
- textNode.nodeValue = "\u3000\u3000" + textNode.nodeValue.replace(/^[\s\u00a0\u3000]+/, "");
|
|
|
- } else {
|
|
|
- node.insertBefore(document.createTextNode("\u3000\u3000"), node.firstChild);
|
|
|
+ textNode.nodeValue = textNode.nodeValue.replace(/^[\s\u00a0\u3000]+/, "");
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -798,7 +796,7 @@ Vue.component('spaceEditor', {
|
|
|
textBlock.style.textAlign = "justify";
|
|
|
textBlock.style.textIndent = "2em";
|
|
|
textBlock.style.lineHeight = "1.8";
|
|
|
- addFirstLineIndent(textBlock);
|
|
|
+ trimFirstTextIndent(textBlock);
|
|
|
}
|
|
|
}
|
|
|
|