aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/formattedText/RichTextMenu.tsx5
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;
}