Open pabloprieto opened 4 months ago
I can confirm it does not trigger EditorJS.onChange
when changing style (fit vs slider). It does trigger for me when deleting items, though.
@VolgaIgor bump as without this trigger it's hard to use core functionality.
Walkaround I'm currently using:
class MyImageGallery extends ImageGallery {
styleToggled(tuneName: string) {
super.styleToggled(tuneName)
// hack: this triggers EditorJS's onChange method
this.ui.nodes.caption.innerHTML = this.ui.nodes.caption.innerHTML
}
}
can be reproduced with the following code:
Adding or moving images correctly trigger EditorJs onChange event, but removing images or changing style does not. Any workaround or suggestion to make it work?