Open excitedbox opened 2 months ago
Hi @excitedbox , thanks for your comment !
Using the twig built-in validation implies having a dedicated PHP endpoint, and this plugin must remain 100% javascript in order to be easily installed. If you want to add a server-side validation, it's quite easy to add, but adding a full PHP vendor to every single project using this JS plugin would really be complicated.
If you want to rework the implementation in order to use Grapejs instead of ckeditor, you must rewrite... everything. The project is 90% ckeditor dedicated and 10% related to twig. If you are talking about https://github.com/GrapesJS/ckeditor , I guess you can add this plugin to the embedded ckeditor
I wanna start by saying, I love this project and think it has amazing potential.
I saw that the todo list said validation using twig.js, but wouldn't it be easier to use the built in validation in twig as listed in the docs? https://twig.symfony.com/doc/3.x/recipes.html#validating-the-template-syntax
Another question I had was, what changes I would have to make to integrate this with Grapejs?