Rich text STOP NOW!!!!

This commit is contained in:
somebody
2023-01-10 18:46:52 -06:00
parent 86f1694290
commit ddaf224f83

View File

@@ -7273,4 +7273,15 @@ async function screenshot_selection(summonEvent) {
let endDebt = totalText.indexOf(selectionContent) + selectionContent.length;
await showScreenshotWizard(actionComposition, startDebt=startDebt, endDebt=endDebt, totalText);
}
}
$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")
);
});