diff options
author | sharkiecodes <lanyi_stroud@brown.edu> | 2025-03-11 16:28:22 -0400 |
---|---|---|
committer | sharkiecodes <lanyi_stroud@brown.edu> | 2025-03-11 16:28:22 -0400 |
commit | 53b6682830fc5331a22db94e779bc17089d906cb (patch) | |
tree | 8d77275752f230f329e598ab1625f3465abda90d /src | |
parent | 3f54517e96ccff233b1560627995024e137dbdfd (diff) | |
parent | 429da4f68c4b661871128cc7763f03eb508ecba0 (diff) |
Merge branch 'master' into lanyi-branch
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/pdf/AnchorMenu.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index eaaeb8d97..6ae659ac1 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -12,6 +12,7 @@ import { AntimodeMenu, AntimodeMenuProps } from '../AntimodeMenu'; import { LinkPopup } from '../linking/LinkPopup'; import { ComparisonBox } from '../nodes/ComparisonBox'; import { DocumentView } from '../nodes/DocumentView'; +import { RichTextMenu } from '../nodes/formattedText/RichTextMenu'; import './AnchorMenu.scss'; import { GPTPopup } from './GPTPopup/GPTPopup'; @@ -196,6 +197,7 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> { {/* Adds a create flashcards option to the anchor menu, which calls the gptFlashcard method. */} {this.gptFlashcards === unimplementedFunction ? null : <IconButton tooltip="Create flashcards" onPointerDown={this.gptFlashcards} icon={<FontAwesomeIcon icon="layer-group" size="lg" />} color={SettingsManager.userColor} />} {this.makeLabels === unimplementedFunction ? null : <IconButton tooltip="Create labels" onPointerDown={this.makeLabels} icon={<FontAwesomeIcon icon="tag" size="lg" />} color={SettingsManager.userColor} />} + {this._selectedText && RichTextMenu.Instance?.createLinkButton()} {AnchorMenu.Instance.OnAudio === unimplementedFunction ? null : ( <IconButton tooltip="Click to Record Annotation" // |