File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -38121,7 +38121,7 @@ class MarkdownWYSIWYG {
3812138121 scrollToBottom()
3812238122 }
3812338123
38124- let overwriteRawContents = () => {
38124+ let overwriteRawContents = async () => {
3812538125 rawTextEditor.innerHTML = gameText.innerHTML
3812638126 editor.setValue(editor._htmlToMarkdown(rawTextEditor.innerHTML))
3812738127 scrollToBottom()
@@ -38145,7 +38145,10 @@ class MarkdownWYSIWYG {
3814538145 // Handler for agent
3814638146 addThought = (wrapperHandler, prompt, onlyDisplay, onlyAdd) => {
3814738147 originalAddThought(wrapperHandler, prompt, onlyDisplay, onlyAdd)
38148- overwriteRawContents()
38148+ if (gameText.contentEditable === "true")
38149+ {
38150+ overwriteRawContents()
38151+ }
3814938152 }
3815038153
3815138154 // Handler for language support
You can’t perform that action at this time.
0 commit comments