-
Hi there, I am trying to add custom logic to the following card component
The problem I am facing is that when I call the below editor listener, I get each individual component inside my card component.
|
Beta Was this translation helpful? Give feedback.
Answered by
artf
Jan 6, 2023
Replies: 1 comment 1 reply
-
You can check the component type this.editor.on(`component:add`, (component) => {
if (component.is('mchn-product-card')) {
// ...
}
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
giltee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can check the component type