How to overwrite js for other extensions ?
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
How to overwrite js for other extensions ?
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 !
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 !
Re: How to overwrite js for other extensions ?
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
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, give us a star
If you like Aimeos, give us a star