Grapesjs with plugin Ckeditor - Adding Custom Variables #5496
nathan-da-silva
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my current code for GrapesJS:
What I want to be able to do is extend the Ckeditor and add a custom dropdown to select PHP variables. So for example, if select an option added called 'Booking Date', it will input a placeholder like {booking_date} but the code will insert something like
<?php echo $booking_date; ?>
I already know how to do this with editor.BlockManager but the issue with this is that you can't insert blocks within text editor blocks.
Any ideas?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions