diff options
author | bobzel <zzzman@gmail.com> | 2020-07-11 20:49:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 20:49:00 -0400 |
commit | ff642c9f9846a182e7ca8893b2ca414bb8ce480f (patch) | |
tree | 534cb1d9b12e95d351595e8f7f11b4573123275c /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | bf8c338e662327b39cdef3f90c436447e48d2807 (diff) | |
parent | 49b6ab8536f570ef244199ac39194d3b176c9e77 (diff) |
Merge pull request #438 from browngraphicslab/ink_menu
format shape pane
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 962d0012f..3c5c48c7c 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1168,7 +1168,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp } } else if ([this._editorView!.state.schema.nodes.ordered_list, this._editorView!.state.schema.nodes.listItem].includes(node?.type) && node !== (this._editorView!.state.selection as NodeSelection)?.node && pcords) { - this._editorView!.dispatch(this._editorView!.state.tr.setSelection(NodeSelection.create(this._editorView!.state.doc, pcords.pos!))); + this._editorView!.dispatch(this._editorView!.state.tr.setSelection(NodeSelection.create(this._editorView!.state.doc, pcords.pos))); } } if ((e.nativeEvent as any).formattedHandled) { e.stopPropagation(); return; } |