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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user