From 1d1b09c9382e8b912fd53097f2f2ca5fb8438b34 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sun, 28 Aug 2022 23:23:40 -0700 Subject: [PATCH] Append question changed text to end of description (instead of start) --- web/components/contract/contract-description.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/contract/contract-description.tsx b/web/components/contract/contract-description.tsx index 9bf2114b..9bffed9b 100644 --- a/web/components/contract/contract-description.tsx +++ b/web/components/contract/contract-description.tsx @@ -128,6 +128,7 @@ function EditQuestion(props: { function joinContent(oldContent: ContentType, newContent: string) { const editor = new Editor({ content: oldContent, extensions: exhibitExts }) + editor.commands.focus('end') insertContent(editor, newContent) return editor.getJSON() }