Live data from Hacker News

Lexical is now open-source (web text-editor)

github.com

1–10 of 19 posts

Re: Lexical is now open-source (web text-editor)

#4
post #3
post #2

Happy to answer any questions that folks might have about Lexical.

Not a question, but a suggestion: it'd be nice to have a Live Demo in the README, like Megadraft's ( https://github.com/globocom/megadraft ) Apart from that, well done :)

We do have a link to a live demo. It's the Lexical Playground:

https://lexical-playground.vercel.app/

Re: Lexical is now open-source (web text-editor)

#6
post #5
post #2

Happy to answer any questions that folks might have about Lexical.

Why write Lexical over using something like ProseMirror or CodeMirror 6? Not being snarky, just curious.

Lexical is a different take compared to ProseMirror and CodeMirror. We took a lot of inspiration from them, but we felt that having a source-of-truth that wasn't the DOM was a better approach. We also looked to improve on code-size, performance and accessibility, which are often forced on the user to implement in those editors.

Re: Lexical is now open-source (web text-editor)

#8
post #7

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?

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.

Re: Lexical is now open-source (web text-editor)

#9
post #4
post #3

Earlier quoted context omitted.

Not a question, but a suggestion: it'd be nice to have a Live Demo in the README, like Megadraft's ( https://github.com/globocom/megadraft ) Apart from that, well done :)

We do have a link to a live demo. It's the Lexical Playground: https://lexical-playground.vercel.app/

The playground is cool. The time-travel component is really neat!
Post reply on HN