Append question changed text to end of description (instead of start)

This commit is contained in:
Austin Chen 2022-08-28 23:23:40 -07:00
parent 8f338a8d88
commit 1d1b09c938

View File

@ -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()
}