News for hackers. Stuff that matters.
Re:CodeMirror 6 by pier25 on Friday February 05, 2021 @01:51PM (#26039817)
I've never used CodeMirror, but I'm using ProseMirror by the same author and it relies a lot on having control of the DOM.

I'm guessing the integration will be basically a wrapper component with a ref of a DOM node where CodeMirror will do its thing.

Re:CodeMirror 6 by dmitryminkovsky on Friday February 05, 2021 @04:37PM (#26041520)
> I'm guessing the integration will be basically a wrapper component with a ref of a DOM node where CodeMirror will do its thing.

Pretty much. This is how my React ProseMirror integration works: https://github.com/dminkovsky/use-prosemirror/blob/main/src/.... Though there are some complexities. I believe CodeMirror would be the same.