Issue #2293💬 AnsweredOpened September 26, 2019by mtasic-realware0 reactions

Updating grapesjs with internal [site specific] changes

快速解答by artf

Indeed this is what happens when you update the core library, it's hard to upgrade.What procedure should i follow ? There are no specific procedures, you just need to rewrite your custom logic in the new version and hope the code isn't changed that much My personal advice, never change the core library, create plugins

Read full answer below ↓

Question

Hello. Is there a way to switch to lastest grapesjs version keeping changes we made to the code for our internal use? Changes are in most cases small and regarding tweaking css and js logic -but we need those changes [mostly requested by client]. Changes are made on unminified version on grapesjs.

I will extract all changes in a document to have it just in case. What procedure should i follow ? Can i have those changes in some external file that will build up aside from grapesjs. Or i need to enter them manually every time new version comes up?

I'm not really familiar how grapesjs is build up to be used. Any help will be appreciated.

Thanks. Mladen

Answers (3)

artfSeptember 28, 2019

Indeed this is what happens when you update the core library, it's hard to upgrade.

What procedure should i follow ?

There are no specific procedures, you just need to rewrite your custom logic in the new version and hope the code isn't changed that much

My personal advice, never change the core library, create plugins

mtasic-realwareSeptember 30, 2019

Can I download source code , add changes to new js file (that will alter default component or block behaviour) and include that file in project ?

Aas a matter of fact - that's the way plugins are made , right ?

artfOctober 6, 2019

Aas a matter of fact - that's the way plugins are made , right ?

No, with plugins, you don't touch the code of the library so the upgrade is safer and easier

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.