How to overwrite js for other extensions ?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

How to overwrite js for other extensions ?

Post by MikaelNazarenko » 29 Apr 2021, 17:12

Hi community!

I want to customize something in grapesjs (I want in assetManager when adding the image to canvas to get the alt attribute inserted from server, but this I even don't suppose that someone has the solution), so for that I want to make own fixes, compile and include the new grapesjs. But how can I disable the included js in the ai-cms-grapesjs extension in file manifest.jsb2 ?

Thank you very much !

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: How to overwrite js for other extensions ?

Post by aimeos » 01 May 2021, 15:51

You can't disable adding the GrapesJS Javascript code from the ai-cms-grapesjs extension but in Javascript and GrapesJS, you can overwrite objects and functions. You need to get a bit used to how GrapesJS and Javascript does things first. A good starting point for customizing GrapesJS is the custom.js file in the extension:
https://github.com/aimeos/ai-cms-grapes ... /custom.js

For overwriting the image handling, especially these lines should be helpful:
https://github.com/aimeos/ai-cms-grapes ... #L514-L519
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply