aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-02-17 23:20:53 -0500
committerBob Zeleznik <zzzman@gmail.com>2020-02-17 23:20:53 -0500
commita72e4656053ae9c489fe4b109442c93d1c342efb (patch)
tree6ea601bb9593b6c40bda10249406d0ce09079c8f /src/client/views/nodes/FormattedTextBox.tsx
parent0f2872775a9a3bab73c92afc329e1279645f3a71 (diff)
fixed setting 'color' on text and other docs
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index c1e630e67..8f6fce4da 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -993,7 +993,9 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps &
});
}
+ public static HadSelection: boolean = false;
onBlur = (e: any) => {
+ FormattedTextBox.HadSelection = window.getSelection()?.toString() !== "";
//DictationManager.Controls.stop(false);
if (this._undoTyping) {
this._undoTyping.end();