diff --git a/static/koboldai.js b/static/koboldai.js index be531ee7..17bd5449 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -7280,4 +7280,15 @@ async function screenshot_selection(summonEvent) { let endDebt = totalText.indexOf(selectionContent) + selectionContent.length; await showScreenshotWizard(actionComposition, startDebt=startDebt, endDebt=endDebt, totalText); -} \ No newline at end of file +} + +$el("#gamescreen").addEventListener("paste", function(event) { + // Get rid of rich text, it messes with actions. Not a great fix since it + // relies on execCommand but it'll have to do + event.preventDefault(); + document.execCommand( + "insertHTML", + false, + event.clipboardData.getData("text/plain") + ); +}); \ No newline at end of file