mjawad096 / laravel-grapesjs

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

Customize GrapesJs UI #4

Closed AkmalArzhang closed 2 years ago

AkmalArzhang commented 2 years ago

Hi, Thank you for great work. It saved me lots of effort and time.

How can I push my own customization to the grapesjs without touching the vendor folder? Is there a way to do that?

AkmalArzhang commented 2 years ago

Anyone can help me with this please? Still couldn't figure out.

AkmalArzhang commented 2 years ago

Ok, I finally got it. In config/grapesjs.php whatever you put in styles or scripts it will be loaded in Canvas.

ghost commented 2 years ago

Sorry I'm a bit late but you can add add your styles and scripts in the config also, you can make set expose_api => true in the config and it will give you a window.gjsEditor js variable to directly access to grapes js editor API to further customize the editor.

AkmalArzhang commented 2 years ago

Thank you. Great work.