Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this meant to be a good drop-in rich-text/WYSIWYG editor?

What is the format that it creates that you could then persist in a database? Does it just save its state in HTML or some JSON format or what?



The core Lexical library is really a framework for building such editors. However, we also provide many common rich-text features out-of-the-box via separate packages, such as @lexical/rich-text. We also expose bindings for React (and hope to have them for other frameworks soon). Check out the lexical-playground package on GitHub for an example of how you can create a rich-text editor by adding plugins to the LexicalComposer component in @lexical/react.


And how is the data saved on the BE? is it the case we can save it as JSON or HTML?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: