diff options
author | bobzel <zzzman@gmail.com> | 2025-02-14 14:07:18 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-02-14 14:07:18 -0500 |
commit | c079b7aa916d7eb35ce186806ca312c84e910cb2 (patch) | |
tree | ec3ab972671d54b31639c8f357bde4ae372b0d2a /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 4a9d8bf9e09a25faeba41c7ece46b86548d66847 (diff) |
major restructure of GPTPopup so that it works with all collections.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 2e14fb1d9..6960247e9 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1063,9 +1063,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB generateImage = async () => { GPTPopup.Instance?.setTextAnchor(this.getAnchor(false)); - GPTPopup.Instance?.setImgTargetDoc(this.Document); - GPTPopup.Instance.addToCollection = this._props.addDocument; - GPTPopup.Instance.generateImage((this.dataDoc.text as RichTextField)?.Text); + GPTPopup.Instance.generateImage((this.dataDoc.text as RichTextField)?.Text, this.Document, this._props.addDocument); }; breakupDictation = () => { |