codex-team/editor.js ? reverse-engineered prompt
Reverse engineered prompt
Build me a reusable web editor for writing articles and rich notes. I want it to feel modern and simple, where the user writes in separate blocks and can add things like paragraphs, headings, images, lists, quotes, tables, code, dividers, checklists, links, and embeds.
The important part is that when someone saves, the editor should give me clean JSON data instead of a big messy HTML string, so I can store it and use it later in a website, app, reader, chatbot, or any other place. Make it easy to add or remove block tools, and keep the editor core flexible for future plugins.
Please include a working demo page where I can type, add blocks, edit them, and press a save button to see the JSON output. Keep the UI clean out of the box and make the setup understandable for someone adding it to another project later. Use TypeScript, and look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit