How do I propagate events from a ViewPluginto the EditorView itself?
Example: I want to listen for clicks on a decoration
other plugin code...
eventHandlers: {
mousedown: (self, e, view) => {
// self is undefined
const target = e.target
if (target.parentElement?.classList.contains('widget')) {
//propagate?
}
}
},
Ideally sth like viewInstance.on(… would work but I couldn’t find any documentation on that topic.
Would appreciate a hint.
Thanks