Hacker News new | ask | show | jobs
by msoad 1524 days ago
Very excited to see a new editor platform offering! This solves some of the problems I had with ProseMirror.

I need code editor embedded in my app. Is there an example of embedding Monaco or CodeMirror with this?

2 comments

We don't have any examples right now, but you could easily do this with a DecoratorNode. See how we create the EquationNode on our Lexical Playground repository. We also have our own code block too, which, with a bit of TLC could be something that could rival Monaco/CodeMirror. We plan on adding virtualization and a bunch of other things in the coming months.
What problems did you have with ProseMirror?