diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-17 09:37:27 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-17 09:37:27 -0400 |
| commit | d1f828f979b6d0326d8f3fa9dd3598f721578dc4 (patch) | |
| tree | c8e653929f8dad655753fa8a1cc00f8151ef8d41 /src/client/views/nodes/formattedText | |
| parent | 950440f9c73746867454e20f0e5c3a38297728b9 (diff) | |
| parent | 3351c0372a8372a3e91bbd814f827a8b984f8665 (diff) | |
merged with masetr
Diffstat (limited to 'src/client/views/nodes/formattedText')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index f29b879b3..16a523b40 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -382,11 +382,11 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp } } - // creates links between terms in a document and documents which have a matching Id + // creates links between terms in a document and published documents (myPublishedDocs) that have titles starting with an '@' hyperlinkTerm = (tr: any, target: Doc, newAutoLinks: Set<Doc>) => { const editorView = this._editorView; if (editorView && (editorView as any).docView && !Doc.AreProtosEqual(target, this.rootDoc)) { - const autoLinkTerm = StrCast(target.title).replace(/^@/, ""); + const autoLinkTerm = StrCast(target.title).replace(/^@/, ""); const flattened1 = this.findInNode(editorView, editorView.state.doc, autoLinkTerm); var alink: Doc | undefined; flattened1.forEach((flat, i) => { |
