1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-10-25 06:37:36 +03:00

Lexical: Added backspace handling for details

Allows more reliable removal of details block on backspace at first
child position with the details block.
This commit is contained in:
Dan Brown
2025-08-27 14:09:38 +01:00
parent 519acaf324
commit 46613f76f6
6 changed files with 48 additions and 11 deletions

View File

@@ -91,9 +91,6 @@ export function createPageEditorInstance(container: HTMLElement, htmlContent: st
window.debugEditorState = () => {
return editor.getEditorState().toJSON();
};
context.manager.onSelectionChange((selection) => {
console.log(selection, context.editor.getEditorState());
});
registerCommonNodeMutationListeners(context);