fix bug that prevented a line from being removed when undoing a newline
This commit is contained in:
parent
9d49a5bb73
commit
abde8b45d2
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ export function renderModel(editor, model) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (lines.length) {
|
if (lines.length) {
|
||||||
removeNextSiblings(editor.children[lines.length]);
|
removeNextSiblings(editor.children[lines.length - 1]);
|
||||||
} else {
|
} else {
|
||||||
removeChildren(editor);
|
removeChildren(editor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue