Hello! From my cursory reading of view/src/input.ts
, it looks like custom DOM handlers (those provided via a EditorView.domEventHandlers
extension) always run before the built-in handlers. Is that correct?
The reason I’m asking, FWIW, is that I’d like to add an additional handler to copy/cut to attach additional types to the clipboardData
object, but the built-in handler calls clearData
. So if my additional handler can run after the built-in one, everything is easy, but if not, I’ll have to re-implement the built-in behavior and return true
.
Thanks!