Re: [w3c/editing] Universal interface to modify content in a JS editor from unrelated JS code. (Issue #551)

johanneswilm left a comment (w3c/editing#551)

> 3\. Slate (which powers Discord.com among others) just started ignoring synthetic events breaking multiple extensions [Ignore input events dispatched by script ianstormtaylor/slate#6117](https://github.com/ianstormtaylor/slate/pull/6117)

Interesting. The problem is that given you a way around this restriction without talking to them will just cause an arms race. They don't want JavaScript to interfere with their editor for some reason. You do to have that power. Right now they check for `isTrusted`, but if you get the ability to run `beforeinput`/`paste` and other events with `isTrusted`, they will look for the next thing - for example they can time it and see if a human would be capable of typing so fast.  Maybe we should ask @juliankrispel why he wants to disable it and how he would feel if we give you a new way around his restriction. Note: assigning `isTrusted` to beforeinput event would actually make it harder to deal with on `EditContext` as editors there know that `isTrusted` `bfeoreinput` events are automatically dealt with and should therefore not be handled in JavaScript.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/551#issuecomment-6060929561
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/551/6060929561@github.com>

Received on Thursday, 8 October 2026 13:29:22 UTC