diff options
author | bobzel <zzzman@gmail.com> | 2021-09-03 03:58:21 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-03 03:58:21 -0400 |
commit | 80baae4dcf49f818dca4dbfe340013e0e9d197bb (patch) | |
tree | 960910dbd8e523d41885c4674a7f5fdadaba98dc /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 5c6946fd211f6b0ee5d860ade968f4353344974d (diff) |
fixed drawing of link lines - doesn't generate duplicates, and works with text regions, scroll locations, and document anchors.
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 59d43f8d7..bc578f95d 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -713,7 +713,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp const splitter = state.schema.marks.splitter.create({ id: Utils.GenerateGuid() }); let tr = state.tr.addMark(sel.from, sel.to, splitter); if (sel.from !== sel.to) { - const anchor = anchorDoc ?? Docs.Create.TextanchorDocument({ title: this._editorView?.state.doc.textBetween(sel.from, sel.to) }); + const anchor = anchorDoc ?? Docs.Create.TextanchorDocument({ title: this._editorView?.state.doc.textBetween(sel.from, sel.to), unrendered: true }); const href = targetHref ?? Doc.localServerPath(anchor); if (anchor !== anchorDoc) this.addDocument(anchor); tr.doc.nodesBetween(sel.from, sel.to, (node: any, pos: number, parent: any) => { |