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

Lexical: Added color picker controls

This commit is contained in:
Dan Brown
2024-06-12 19:51:42 +01:00
parent a475cf68bf
commit 9e43e03db4
14 changed files with 367 additions and 173 deletions

View File

@@ -1,5 +1,5 @@
import {EditorFormModal, EditorFormModalDefinition} from "./modals";
import {EditorUiContext} from "./core";
import {EditorUiContext, EditorUiElement} from "./core";
import {EditorDecorator} from "./decorator";
@@ -22,6 +22,13 @@ export class EditorUIManager {
return this.context;
}
triggerStateUpdate(element: EditorUiElement) {
element.updateState({
selection: null,
editor: this.getContext().editor
});
}
registerModal(key: string, modalDefinition: EditorFormModalDefinition) {
this.modalDefinitionsByKey[key] = modalDefinition;
}