diff options
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; |