aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBox.tsx
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2023-07-18 12:06:21 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2023-07-18 12:06:21 -0400
commit162ca319eae256be523f2ee75e7aae7a9a408e37 (patch)
tree6684ab0ed208f0686aed33476dfae57098b21b59 /src/client/views/nodes/formattedText/FormattedTextBox.tsx
parent5e84fa8496331dfebfc24772f0073d086b01b5a0 (diff)
.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBox.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
index 3fa5c099b..307e52cff 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx
@@ -882,7 +882,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps
};
animateRes = (resIndex: number) => {
- console.log(this.gptRes);
+ console.log(this.dataDoc.text);
if (resIndex < this.gptRes.length) {
this.dataDoc.text = (this.dataDoc.text as RichTextField)?.Text + this.gptRes[resIndex];
setTimeout(() => {
@@ -891,6 +891,11 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps
}
};
+ // breakupdictiation for reference
+ // prepareForTyping
+ // stored marks - userMark and timestamp, setStoredMarks
+ //the._editorView.dispatch(state.tr.setSelection(updatted).insertText('\n, to))
+
askGPT = action(async () => {
try {
let res = await gptAPICall((this.dataDoc.text as RichTextField)?.Text, GPTCallType.COMPLETION);