aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-07-24 11:14:33 -0400
committerab <abdullah_ahmed@brown.edu>2019-07-24 11:14:33 -0400
commitc2dead205fe719881ca7e254c1872e03a2da9b3d (patch)
treec370d84668de789981f414db6e303e849dd95574 /src/client/views/nodes/FormattedTextBox.tsx
parent13c016d7f7765acda7f6ce2d69c14597469f55d7 (diff)
idk
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx4
1 files changed, 4 insertions, 0 deletions
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) {