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

Lexical: Added single node backspace/delete support

This commit is contained in:
Dan Brown
2024-09-09 18:33:54 +01:00
parent fb49371c6b
commit ced66f1671
4 changed files with 49 additions and 5 deletions

View File

@ -33,7 +33,7 @@ export class CodeBlockNode extends DecoratorNode<EditorDecoratorAdapter> {
}
static clone(node: CodeBlockNode): CodeBlockNode {
const newNode = new CodeBlockNode(node.__language, node.__code);
const newNode = new CodeBlockNode(node.__language, node.__code, node.__key);
newNode.__id = node.__id;
return newNode;
}