Custom is missing in the AssetManagerConfig
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome
Reproducible demo link
this is a compile error
Describe the bug
The property custom is missing in the AssetManagerConfig. It works if I use the untyped grapesjs but I want use it with types. Is there a workaround for this problem?
Id do it like discripted here: https://grapesjs.com/docs/modules/Assets.html#customization

index.d.ts

Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (2)
Feel free to update the type definition, here is an example commit.
https://github.com/artf/grapesjs/commit/49deeeeab74aff3e46f22d0bb06e7f7608955afd
My workaround:
let assetConfig: grapesjs.AssetManagerConfig = {};
assetConfig["custom"] = {
open: (props) => {
this.openGalleryDialog(props);
},
close: (props) => {
this.dialog.closeAll();
},
};Related Questions and Answers
Continue research with similar issue discussions.
Issue #4682
BUG: Module not found: Error: Can't resolve 'utils/mixins'
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? chrome 106Reproducible demo link localhostDe...
Issue #4577
BUG: prevent event using custom plugin
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? chrome latestReproducible demo link there is...
Issue #4496
BUG: setStyle
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? chrome latest versionReproducible demo link...
Issue #6646
BUG: Javascript error when I want to add padding
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome & Firefox Reproducible demo link De...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.