diff options
author | bobzel <zzzman@gmail.com> | 2020-08-14 00:29:26 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-14 00:29:26 -0400 |
commit | 19ca5143d050368284ab91ad4a096a674fe84646 (patch) | |
tree | db719b9718e943415d0cc1076aeab94d4f41dc95 /src | |
parent | 4fbdc12c026d0bd5891660018faa3473042344b3 (diff) |
fixed upating of Rich Text Menu toolbar --- still hacky though.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/formattedText/RichTextMenu.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |