diff options
author | bobzel <zzzman@gmail.com> | 2022-04-06 11:04:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-04-06 11:04:53 -0400 |
commit | 27d37f7c50978da6f3eca87e1aa5bfea786b19c6 (patch) | |
tree | 0f60e6e90a4e6dbb9a57cfd8c45e58aefe1e2e26 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | af8df1fc1af11318cadf1b71373bef776461a5cc (diff) |
fixed displaying titles on text to not shrink box to 0 height. fixed autoLink to not self link.
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 1f7e557d9..dcb312980 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -381,7 +381,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp // creates links between terms in a document and documents which have a matching Id hyperlinkTerm = (tr: any, target: Doc, newAutoLinks: Set<Doc>) => { - if (this._editorView && (this._editorView as any).docView) { + if (this._editorView && (this._editorView as any).docView && !Doc.AreProtosEqual(target, this.rootDoc)) { const flattened1 = this.findInNode(this._editorView, this._editorView.state.doc, StrCast(target.title).replace(/^@/, "")); var alink: Doc | undefined; flattened1.forEach((flat, i) => { |