I was testing the new Gutenberg editor for Wordpress, and realized that this kind of approach to edition would be interesting for one of my custom (non-Wordpress) PHP projects.

It's for a small newsletter system, so the goal is to allow people without specific knowledge in HTML/CSS to easily generate and edit (semi-)rich content built on specific HTML/CSS code (since your standard HTML for the web often doesn't work well in email).

I'm guessing that Gutenberg was developed specifically for Wordpress and is deeply integrated to it, which probably makes it very difficult to reuse in another system.

Are there other similar solutions available, that can be injected and customized into any project? Not just a standard WYSIWYG JS editor (like TinyMCE), but something that works in its core with this concept of reusable predefined blocks, that can be inserted, edited, moved around, etc.

The tech would be JavaScript (with HTML/CSS, obviously), with a PHP backend where necessary (e.g. for image upload). The system should be pluggable in the sense that I (as maintainer of the project) need to be able to create custom blocks and define precisely what kind of HTML/CSS is generated by each block.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.