lobehub/lobe-editor ? reverse-engineered prompt

Reverse engineered prompt

Build me a modern rich text editor library for React, something I can drop into a chat app or content editor and start using right away.

I want it to support normal typing, headings, lists, links, images, tables, files, code blocks, mentions, and slash commands like / and @. It should also have a simple chat input component for sending messages, with options like mention, upload, and code support. Please make it flexible enough that I can use it either as a full React component or through a lower level editor API if I need more control.

It should be easy to get the content back as plain text, markdown, or JSON, and it should feel polished and modern. Use the current docs for Lexical and React if you need to look anything up online. Also include a clean example or demo so I can see how to wire up plugins and custom commands.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab