aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-12-15 10:38:23 -0500
committerBob Zeleznik <zzzman@gmail.com>2019-12-15 10:38:23 -0500
commit877a6f481a06e2454ff9d8eabe43acb0e58a2676 (patch)
treeb03669d95f6d8293376831e406d91c2b35b08e51 /src/client/views/nodes/FormattedTextBox.tsx
parent24a9257a0dadaed4a6e31a54b5936668f2d34e6f (diff)
writing selectedDocs to user doc to allow selection to be part of scripting
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/FormattedTextBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx
index e40c00e54..3efbd434e 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -822,7 +822,7 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps &
clipboardTextSerializer: this.clipboardTextSerializer,
handlePaste: this.handlePaste,
});
- (this._editorView.state.schema as any).Document = this.props.Document;
+ this._editorView.state.schema.Document = this.props.Document;
if (startup && this._editorView) {
Doc.GetProto(doc).documentText = undefined;
this._editorView.dispatch(this._editorView.state.tr.insertText(startup));