diff options
author | A.J. Shulman <Shulman.aj@gmail.com> | 2024-12-20 15:45:01 -0500 |
---|---|---|
committer | A.J. Shulman <Shulman.aj@gmail.com> | 2024-12-20 15:45:01 -0500 |
commit | 971d107574031885c17c339d39c4fd813682cc02 (patch) | |
tree | 947d9c0f347f8871616ef2053da994ddd5342e63 /src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx | |
parent | f915013d2ccfaeb7f04bf8bfea57e6d7d1f66b81 (diff) |
working new tool
Diffstat (limited to 'src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx')
-rw-r--r-- | src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx index d2931106a..37059c635 100644 --- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx +++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx @@ -431,7 +431,7 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { switch (doc_type.toLowerCase()) { case 'text': - doc = Docs.Create.TextDocument(data || '', options); + doc = Docs.Create.PdfDocument(data || '', { ...options, text: RTFCast(data) }); break; case 'pdf': doc = Docs.Create.PdfDocument(data || '', options); @@ -469,6 +469,9 @@ export class ChatBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { case 'chat': doc = Docs.Create.ChatDocument(options); break; + case 'note_taking': + doc = Docs.Create.NoteTakingDocument([Docs.Create.TextDocument(data!)], options); + break; case 'script': const result = !data!.trim() ? ({ compiled: false, errors: [] } as CompileError) : CompileScript(data!, {}); const script_field = result.compiled ? new ScriptField(result, undefined, data!) : undefined; |