1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Lexical: Added custom id-supporting paragraph blocks

This commit is contained in:
Dan Brown
2024-05-28 15:09:50 +01:00
parent 49546cd627
commit 0f8bd869d8
6 changed files with 122 additions and 20 deletions

View File

@@ -45,10 +45,6 @@ export function createPageEditorInstance(editArea: HTMLElement) {
debugView.textContent = JSON.stringify(editorState.toJSON(), null, 2);
});
// Todo - How can we store things like IDs and alignment?
// Node overrides?
// https://lexical.dev/docs/concepts/node-replacement
// Example of creating, registering and using a custom command
const SET_BLOCK_CALLOUT_COMMAND = createCommand();