garrytan/zurb-foundation-wysihtml5 ? reverse-engineered prompt
Reverse engineered prompt
Build me a small JavaScript plugin that turns a normal textarea into a simple rich text editor styled to match Zurb Foundation.
I want it to work like a drop in jQuery enhancement, so I can call it on a textarea and get a toolbar for basic formatting like headings, bold, italics, lists, links, and images. It should keep the content in the textarea as HTML so I can submit and read it with val(). Please include a working example page, the built version, the source code, and a few tests if that makes sense.
Also make it easy to customize, like turning toolbar buttons on or off, swapping out button templates, adding extra editor styles, and listening for editor events like load and blur. If you can, include support for changing the allowed HTML rules and a simple way to add other languages. Use current docs online if you need to check anything about the editor it wraps.
Are you gonna build this?
make sure you review the code using coderabbit