facebook/lexical ? reverse-engineered prompt
Reverse engineered prompt
I want to build a rich text editor component for my web app, something modern and powerful like the editor in Notion or Google Docs. It needs to support all the standard formatting—bold, italics, headings, lists, and links—but also handle more complex content like tables, images, and code snippets.
A key feature I need is real-time collaboration, so multiple people can type in the same document at once. It should also have a reliable undo/redo history. The whole thing should be really performant and accessible for users with disabilities. I'd like to be able to easily get the content out as HTML or Markdown to save to a database.
Please build this using TypeScript and make it a reusable component for a React project. You can use a good open-source framework for this; feel free to look up current docs to find the best one.
Are you gonna build this?
make sure you review the code using coderabbit