Open modal after drop element #3758
Unanswered
throne1986
asked this question in
Q&A
Replies: 1 comment
-
You can customize the editor.Components.addType('my-comp', {
view: {
onActive() {
alert('Component activated');
// Your logic here...
}
}
}) And this is how to configure your block to trigger activation on drop {
label: 'Block label',
content: { type: 'my-comp' },
// ...
activate: true,
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @artf , how to show custom modal dialog when dropping elements on the editor?
like asset modal dialog appears when dropping the image block to the editor.
eg I want to have my own custom image block, so when the user drops this custom-image- block to canvas it should open a react-modal like this image below
tried like this below
Unfortunately, when I drop the custom-image block nothing is happening, any idea what do I need to do to get this working?
Beta Was this translation helpful? Give feedback.
All reactions