This commit is contained in:
Vanessa 2022-09-23 23:30:01 +08:00
parent 1034e71467
commit 3e4f6c5587
8 changed files with 14 additions and 16 deletions

View file

@ -91,8 +91,8 @@ export class Title {
event.preventDefault();
event.stopPropagation();
} else if (event.key === "Enter") {
const newId = Lute.NewNodeID()
const newElement = genEmptyElement(false, true, newId)
const newId = Lute.NewNodeID();
const newElement = genEmptyElement(false, true, newId);
protyle.wysiwyg.element.insertAdjacentElement("afterbegin", newElement);
focusByWbr(newElement, protyle.toolbar.range || getEditorRange(newElement));
transaction(protyle, [{