laravel-grapesjs
laravel-grapesjs copied to clipboard
Custom templates and blocks are not showing in the editor
Hi!
First of all, thanks for building this great package.
I'm trying to add custom templates and blocks by added them to the 'resources/views/vendor/laravel-grapejs/templates' and 'resources/views/vendor/laravel-grapejs/gjs-blocks' folders, but somehow they aren't showing in the editor.
Even the two files that were already there (named example.blade.php) aren't showing.
Any idea what I'm doing wrong?
Thanks.
👍
@JerrelZ please look at this section in the readme and let me know if this has not helped you.
I have the same issue.
I have the same issue.
@JerrelZ please look at this section in the readme and let me know if this has not helped you.
This is a Slack link. I don't have access to your workspace.
Apologize, I've updated the link. Review now and let me know if it doesn't resolve your problem.
still blocks and templates not working
still blocks and templates not working
From what I can tell, templates fail to show if they include Laravel directives and possibly Tailwind, which would make it useless for me. I'm not entirely sure but I can get at least get Blocks to show up but only if they are vanilla HTML. Hopefully @jd-dotlogics can look into this. Should Laravel directives and Tailwind work?? Also, where are buttons and other elements in the edit panel??
I had this this issue a while ago and I found out that when two blade files with similar names were in the resources/views/vendor/laravel-grapejs/gjs-blocks
or resources/views/vendor/laravel-grapejs/templates
directories, this issue would occur.
I tried giving each block and template unique names with kebab-case naming convention and it was fixed. I hope it also works for you.