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