basecamp/trix ? reverse-engineered prompt
Reverse engineered prompt
I want to build a rich text editor component for web apps. It should be for everyday writing—things like messages, comments, and simple articles, not complex page layouts. I want a clean, default WYSIWYG toolbar with buttons for common formatting like bold, italics, links, quotes, and lists. It's really important that users can also embed attachments or images right into their text.
Make it super simple for a developer to use. It should work as a custom HTML element that you can just drop onto a page, like <trix-editor>. It should automatically create the toolbar and be easy to integrate with a standard HTML form so the content can be submitted to a server. The editor needs to be very reliable and produce clean, consistent HTML output across different browsers.
Are you gonna build this?
make sure you review the code using coderabbit