Turn a div into an editor

Hi,

I have a div containing paragraphs. I would like to turn this div into a ProseMirror editor. How could I do?

I know I can create an editor state from the content of this div and then pass the state to the editor view, but it will necesseraly be appended to an element, what is not what I would like to have.

Thank you for the help, Lucas

Have you tried the mount variant of the EditorView constructor?

No, I missed it… It works perfectly! Thank you for your answer and your huge work in this library :slight_smile: