NodeView.contentDOM trouble

I am using a NodeView and have a NodeView.contentDOM defined. I can load content into it and I can edit it. And when editing, dispatchTransaction gets called in the EditorView with tr.docChanged set to true. But unfortunately, the doc does not contain the changes.

Is there anything additional I need to do or to configure ?

How are you using docChanged? Your formulation makes it sound like you set it true, but it’s a computed property that becomes true when any steps were added to a transaction. Could you set up a minimal demo that shows the issue?

@marijn thanks, when setting up the minimal demo, I found the bug at my side (I was retrieving the doc from the old state and not from the transaction). All fine now, sorry for the noise.

That’s one advantage of reducing bugs to a minimal case. Glad you figured it out!