From 04669ffeb163688c7aefd7b5face7998252abdca Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 10 Mar 2025 18:02:07 -0400 Subject: removed label creation from text's anchor menu. removed label creation from pdfs. --- src/client/views/nodes/formattedText/FormattedTextBox.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/views/nodes/formattedText') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 7feaac6ae..38817ac6d 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -226,7 +226,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent { + selectionToFlashcards = async () => { const queryText = window.getSelection()?.toString() ?? ''; try { if (queryText) { @@ -241,7 +241,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent { AnchorMenu.Instance.Status = 'marquee'; - AnchorMenu.Instance.gptFlashcards = this.gptPDFFlashcards; + // AnchorMenu.Instance.gptFlashcards = this.selectionToFlashcards; + AnchorMenu.Instance.makeLabels = unimplementedFunction; AnchorMenu.Instance.addToCollection = this._props.DocumentView?.()._props.addDocument; AnchorMenu.Instance.OnClick = () => { !this.layoutDoc.layout_showSidebar && this.toggleSidebar(); -- cgit v1.2.3-70-g09d2