aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorStanley Yip <33562077+yipstanley@users.noreply.github.com>2020-02-29 14:20:01 -0500
committerGitHub <noreply@github.com>2020-02-29 14:20:01 -0500
commitbb2f6955bef4f079c0fa7213e80fde7a76847799 (patch)
treeef5e70925b8cdeb8229af849e33e6f3a4cceae7f /src/client/views/nodes/FormattedTextBox.tsx
parent640f14da28d97600fb32d09023fc932e3a4052c4 (diff)
parent2f6e27c67d1790d4350eede3003f0b614460f4d1 (diff)
Merge pull request #343 from browngraphicslab/pen
Pen
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 ad804209b..41c94b923 100644
--- a/src/client/views/nodes/FormattedTextBox.tsx
+++ b/src/client/views/nodes/FormattedTextBox.tsx
@@ -1016,7 +1016,7 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps &
richTextMenuPlugin() {
return new Plugin({
view(newView) {
- RichTextMenu.Instance.changeView(newView);
+ RichTextMenu.Instance && RichTextMenu.Instance.changeView(newView);
return RichTextMenu.Instance;
}
});