Rich text STOP NOW!!!!

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

View File

@@ -7274,3 +7274,14 @@ async function screenshot_selection(summonEvent) {
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")
);
});