Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Aug 27, 2024
1 parent a066d49 commit b244f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/protyle/wysiwyg/keydown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
ignoreIllegals: true
}).value + "<br>");
range.setStart(wbrElement.nextSibling, 0);
const brElement = wbrElement.parentElement.querySelector("br")
const brElement = wbrElement.parentElement.querySelector("br");
range.setEnd(brElement.previousSibling, brElement.previousSibling.textContent.length);
brElement.remove();
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, oldHTML);
Expand Down

0 comments on commit b244f8a

Please sign in to comment.