Is there a way to re-render a custom node view when view.editable changes? It doesn’t seem like node views are currently reconstructed when that prop changes within updateStateInner.
Use case is to disable editing of embedded CodeMirror when ProseMirror itself is non-editable.
Node views indeed don’t get notified of changes in the outer editor, unless the change affects their part of the document. You’d have to arrange for this in some other way, such as toggling a node decoration on the nodes with the node view when something changes.
Ah, that makes sense: create a plugin that keeps state of view.editable, create a “meta editable” node decorations whenever view.editable === false, update node editable when decoration changes.