diff options
| author | bobzel <zzzman@gmail.com> | 2023-04-05 12:19:01 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-04-05 12:19:01 -0400 |
| commit | e4b76f6c1dee63c49408c48d7b2bc98e62dc813a (patch) | |
| tree | 92c42b9bdce9d7432ea1498295a41684f680c9ab /src/client/views/nodes/formattedText/RichTextRules.ts | |
| parent | c5c2c309cd88bbeb2f1b668cb040cffaac9c8470 (diff) | |
adjusted general context menu items to always appear last. cleaned up makeLink api,
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextRules.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextRules.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextRules.ts b/src/client/views/nodes/formattedText/RichTextRules.ts index 9e9b61db3..e691869cc 100644 --- a/src/client/views/nodes/formattedText/RichTextRules.ts +++ b/src/client/views/nodes/formattedText/RichTextRules.ts @@ -259,7 +259,7 @@ export class RichTextRules { this.TextBox.EditorView?.dispatch(rstate.tr.setSelection(new TextSelection(rstate.doc.resolve(start), rstate.doc.resolve(end - 3)))); } const target = (docx instanceof Doc && docx) || Docs.Create.FreeformDocument([], { title: docId, _width: 500, _height: 500 }, docId); - DocUtils.MakeLink({ doc: this.TextBox.getAnchor(true) }, { doc: target }, 'portal to:portal from', undefined); + DocUtils.MakeLink(this.TextBox.getAnchor(true), target, { linkRelationship: 'portal to:portal from' }); const fstate = this.TextBox.EditorView?.state; if (fstate && selection) { |
