From 19ca5143d050368284ab91ad4a096a674fe84646 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 14 Aug 2020 00:29:26 -0400 Subject: fixed upating of Rich Text Menu toolbar --- still hacky though. --- src/client/views/nodes/formattedText/RichTextMenu.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/nodes/formattedText/RichTextMenu.tsx b/src/client/views/nodes/formattedText/RichTextMenu.tsx index 459632ec8..b683fb25d 100644 --- a/src/client/views/nodes/formattedText/RichTextMenu.tsx +++ b/src/client/views/nodes/formattedText/RichTextMenu.tsx @@ -163,11 +163,14 @@ export default class RichTextMenu extends AntimodeMenu { } update(view: EditorView, lastState: EditorState | undefined) { - this.updateFromDash(view, lastState, this.editorProps); + RichTextMenu.Instance.updateFromDash(view, lastState, this.editorProps); } @action public async updateFromDash(view: EditorView, lastState: EditorState | undefined, props: any) { + RichTextMenu.Instance.finalUpdateFromDash(view, lastState, props); + } + public async finalUpdateFromDash(view: EditorView, lastState: EditorState | undefined, props: any) { if (!view || !(view as any).TextView?.props.isSelected(true)) { return; } -- cgit v1.2.3-70-g09d2