diff options
author | bobzel <zzzman@gmail.com> | 2021-11-17 21:09:02 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-11-17 21:09:02 -0500 |
commit | 1c0ca018dce4392a91b37ab20b936aa137c1e8a9 (patch) | |
tree | be7a7dc48022aed5e7a731ef62a22f04f6031fec /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 80b27ef548936dbddaecc62f1068fff12546bf32 (diff) |
changed link line curves a bit. fixed formatted text box not to center text for typed notes.
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 d9c417b41..77f33b432 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1145,7 +1145,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp const startupText = Field.toString(this.dataDoc[fieldKey] as Field); if (startupText) { dispatch(state.tr.insertText(startupText)); - } else { + } else if (!FormattedTextBox.LiveTextUndo) { selectAll(this._editorView!.state, (tr) => { this._editorView!.dispatch(tr.replaceSelectionWith(state.schema.nodes.paragraph.create({ align: "center" }))); }); |