Replies: 1 comment 1 reply
-
@artf I figured, this works - but is it correct? https://github.com/padcom/grapesjs-call-inherited-example/blob/master/main.mjs toHTML() {
const Component = editor.Components.getType('default')
const result = Component.model.prototype.toHTML.call(this, ...arguments)
// .... do something with the result
return result
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to call the inherited function, like
toHTML(opts)
when overriding a component type?Beta Was this translation helpful? Give feedback.
All reactions