handleKeyDown: ?⁠fn(view: EditorView, event: dom.KeyboardEvent) → bool

handleKeyDown: ?⁠fn(view: EditorView, event: dom.KeyboardEvent) → bool Called when the editor receives a keydown event.

How to get excavated content, now event.target is editor div…

To my knowledge, view.docView.domFromPos(selection.from) should do the trick.

My concern is that this API, together with docView.posFromDOM, are not documented. Anyone knows about whether this approach is recommended, or any plan to expose docView into official documentation?

Thank you for your answer. Yeah, I think so too, the official document I did not find the corresponding content.

view.docView.domFromPos (selection.from) Get the deleted value, I want to be deleted by the Backspace value