HansSchouten / PHPageBuilder

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

How can i update to latest version of grapejs ? #122

Open mahmoudtrageh opened 2 years ago

treborin commented 2 years ago

Easy, @HansSchouten. Find file src/Modules/GrapesJS/resources/views/layout.php Change line 8 by: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/grapesjs/0.12.17/grapes.min.js"> And line 16 by: <script src="https://cdnjs.cloudflare.com/ajax/libs/grapesjs/0.12.17/css/grapes.min.css"></script>

You can find all this info at GrapesJS site: https://grapesjs.com/docs/#quick-start Later, i suggest you to check if everything is ok. I did it by myself and it seems to work, but i'm not sure yet.

Good luck :)

mahmoudtrageh commented 2 years ago

@treborin TNX so much unfortunately it didn't work as expected (many errors) I think other files needed to updated I tried too much but no luck

mahmoudtrageh commented 2 years ago

@HansSchouten Can I at lease add icon picker plugin ?

treborin commented 2 years ago

@HansSchouten Can I at lease add icon picker plugin ?

Well, i never did it, but phpb loads fontawesome, so you could try to use this: https://itsjavi.com/fontawesome-iconpicker/, and find the way to use it. Just a suggestion...

mahmoudtrageh commented 2 years ago

Ok thank you so much, I will try it.

treborin commented 2 years ago

Hi @mahmoudtrageh, I'v tested to update grapesjs up to v0.18.4, and it works nicely. Just to let you know

mahmoudtrageh commented 2 years ago

tnx you so much I will try it.

mahmoudtrageh commented 2 years ago

I have a question in css when I put styles in public -> style.css file inside themes folder -> theme folder

and then edit it nothing change ?

treborin commented 2 years ago

I have a question in css when I put styles in public -> style.css file inside themes folder -> theme folder

and then edit it nothing change ?

@mahmoudtrageh , That stylesheet is used just when you render the "real time" html code you have done inside the canvas. Let's say, the final result of your page/s. If you edit this style.css file, you should clear your browser's cache in order to see changes inmediately. It works ok for me.

mahmoudtrageh commented 2 years ago

awesome

thank you so much for make it clear.