From c2dead205fe719881ca7e254c1872e03a2da9b3d Mon Sep 17 00:00:00 2001 From: ab Date: Wed, 24 Jul 2019 11:14:33 -0400 Subject: idk --- src/client/views/nodes/FormattedTextBox.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/views') diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 524500f35..665a941e6 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -145,6 +145,10 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe if (this._editorView) { const state = this._editorView.state.apply(tx); this._editorView.updateState(state); + if (state.selection.empty && FormattedTextBox._toolTipTextMenu) { + const marks = tx.storedMarks; + if (marks) { FormattedTextBox._toolTipTextMenu.mark_key_pressed(marks); } + } this._applyingChange = true; const fieldkey = "preview"; if (Object.keys(this.dataDoc).indexOf(fieldkey) !== -1) { -- cgit v1.2.3-70-g09d2