From 0c33f25e18279a27a62ddfaba36d04dab86a4ca5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 28 Feb 2021 12:49:44 -0500 Subject: fixed linkondeselect tempoararily. fixed following hypertext links that are not on the lowest level span --- src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx') diff --git a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx index 15c669338..6821935a0 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx @@ -85,7 +85,7 @@ export class FormattedTextBoxComment { static update(textBox: FormattedTextBox, view: EditorView, lastState?: EditorState, hrefs: string = "") { FormattedTextBoxComment.textBox = textBox; if ((hrefs || !lastState?.doc.eq(view.state.doc) || !lastState?.selection.eq(view.state.selection))) { - FormattedTextBoxComment.setupPreview(view, textBox, hrefs ? hrefs.trim().split(" ") : undefined); + FormattedTextBoxComment.setupPreview(view, textBox, hrefs?.trim().split(" ")); } } -- cgit v1.2.3-70-g09d2