[Webkit-unassigned] [Bug 196702] insertFromPaste InputEvent missing text/uri-list in dataTransfer for pasted links

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 8 14:14:31 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=196702

--- Comment #2 from Javan Makhmali <javan at javan.us> ---
Hey Wenson!

For some context, I recently updated our rich text editor (https://trix-editor.org/) to handle Level 2 Input Events instead of a whole suite of keyboard events. I had hoped to avoid handling the paste event entirely, but ran into a couple cases where beforeinput.insertFromPaste's dataTransfer lacked necessary detail (see also https://bugs.webkit.org/show_bug.cgi?id=194921). I ended up handling both events, relying on the paste event for a handful of known cases where beforeinput won't work, which feels unfortunate. To quote the spec:

> The goal of these events is to allow authors to understand and/or override default edit behavior both before and after editing occurs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190408/19a33d55/attachment.html>


More information about the webkit-unassigned mailing list