mjawad096 / laravel-grapesjs

This package provide an esay way to integrate GrapesJS into your laravel proejct.
MIT License
108 stars 54 forks source link

Some plugins stop working after update to 3.2.5 #29

Closed insssomniac closed 2 years ago

insssomniac commented 2 years ago

Hi JD,

I've updated to the 3.2.5, and after that, as i noticed, the config file format was changed. When i'm adding the grapesjs-tailwind module to the 'custom' section like this: 'grapesjs-tailwind' => 'https://unpkg.com/grapesjs-tailwind', all styles doesn't work. The same if i adding it with the 'advanced' way.

Also it is error in console:

editor.js:2 Uncaught TypeError: Cannot read properties of null (reading 'getOptions')
    at i.<anonymous> (editor.js:2:9462)
    at y (editor.js:2:159143)
    at m (editor.js:2:158935)
    at d (editor.js:2:156888)
    at u.trigger (editor.js:2:158828)
    at editor.js:2:1027117

on the 3.2.3 it working fine, but I need the latest version

mjawad096 commented 2 years ago

Hi @insssomniac, it is working fine for me. It seems that you did not update the editor.js file with the latest one.

Please run the below command to re-publish the latest assets

php artisan vendor:publish --provider="Dotlogics\Grapesjs\GrapesjsServiceProvider" --tag="public" --force

and then clear your browser cache and it will work again.

insssomniac commented 2 years ago

@mjawad096 great, thanks!

ghost commented 2 years ago

@insssomniac, I'll add the laravel asset tag to the public publishable to automatically publish assets on the update, So you'll not have to run this command manually.