[repro provided] Cannot extend model defaults? #5846
Answered
by
artf
addlistener
asked this question in
Q&A
-
As disccussed here we should be able to do this My code:
https://stackblitz.com/edit/grapesjs-react-custom-ui-oqoqcp?file=src%2FpatchNativeComponents.ts |
Beta Was this translation helpful? Give feedback.
Answered by
artf
May 6, 2024
Replies: 1 comment 2 replies
-
Yeah the API here is slightly changed editor.DomComponents.addType(type, {
model: {
defaults: {
highlightable: false,
}
},
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It automatically extends parent properties, so you only need to indicate your new/updated properties.