1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Lexical: Fixed issues with recent changes

This commit is contained in:
Dan Brown
2025-05-26 19:06:36 +01:00
parent 2e718c12e1
commit d9ea52522e
2 changed files with 10 additions and 4 deletions

View File

@ -125,9 +125,9 @@ export function $selectOrCreateAdjacent(node: LexicalNode, after: boolean): Rang
if (!target) {
target = $createParagraphNode();
if (after) {
node.insertAfter(target)
nearestBlock.insertAfter(target)
} else {
node.insertBefore(target);
nearestBlock.insertBefore(target);
}
}