mariojgt / onix-pro

A page builder for laravel that works in a very simple and easy way, by default onix uses tailwind css, but can be easy change to your custom css.
MIT License
34 stars 6 forks source link

How to add grapsjs popular plugins like "grapesjs-preset-webpage" #6

Closed MilanUnjiya4149 closed 3 years ago

MilanUnjiya4149 commented 3 years ago

I want to add grapesjs-preset-webpage plugins with onix.

I did try to find out steps/doc on google but I not found.

Your help will be appreciated.

Thank you in advance.

mariojgt commented 3 years ago

Hi there so i am not 100 % when i build onix in kind use those presets to create my own simple version unfortunately the grapesjs documentation is very limited but any new plugins you need to add in the onix you can check the file onixPreset.js inside the folder onix/Publish/Resource/js/grape/onixPreset.js i add comment line buy line let me know if that help you in any way.

MilanUnjiya4149 commented 3 years ago

Thank you for your comment.

It's possible via change in vendor\mariojgt\onix\src\views\components\onix\main.blade.php this file.

Load plugin dependency and add plugin name to the plugin array on grapesjs init method.