HansSchouten / PHPageBuilder

A drag and drop page builder to manage pages in any PHP project
https://www.phpagebuilder.com
MIT License
706 stars 178 forks source link

Updating GrapesJS version causing issues #137 #144

Open annus97 opened 1 year ago

annus97 commented 1 year ago

Hi,

I have updated the grapesjs version from 0.15.9 provided in the package to 0.17.27 by updating the import of CDN in the package due to the unavailability of many events in older grapesjs version. After updating the version I am getting error in the app.js file which is in the public/assets/pagebuilder folder, the same file which is in the dist folder of phpagebuilder package. The error is "Uncaught TypeError: Cannot read properties of null (reading 'attributes')". It occurs in other basic functionalities like changing button text or uploading image. The component is removed so accessing its attribute property is giving the error. Is there any way to generate this app.js file for the latest version of grapesjs or any other proper way to update grapesjs version or how to resolve this error? Your feedback in this regard will be highly appreciated.