Apply NodeView to `doc` node

I want to implement a gutter for showing some information, but simply making a custom NodeView for just the pararagraph node (which is from prosemirror-example-setup) won’t do as there are other nodes too - like heading, blockquote, etc. I’ve created a NodeView for the doc type of node, but it is not being applied. Is this disallowed, or am I making some mistake?

No, that doesn’t work—the doc node is not technically in the document (it contains the document), so only its content, not the node itself, is rendered by the editor view.

1 Like