Reverse engineered prompt

GitHub

Build me a modern browser rich text editor that feels like a polished WYSIWYG editor people can drop into a web page and start using right away. I want a simple setup where you pass in a CSS selector for a div and it turns into an editor, with a toolbar for basic formatting like bold and italic, support for starter content, and a clean theme out of the box. It should also support more than one visual style, like a standard full editor look and a lighter bubble style.

Please make it feel reusable and extensible, not just a one off demo, so other people can customize the toolbar, themes, and behavior later. I’d like it to work well in normal browser setups, including a simple script tag and stylesheet option as well as a package install flow. Include a small demo or playground page and clear docs so someone can copy the example and get started fast. If you need details, check the current docs online and align with that.

Have a live product UI? Try website reverse