DennisSuitters / summernote-image-attributes

Summernote plugin to edit image attributes
MIT License
89 stars 89 forks source link

propagate change event to onChange callback #46

Closed nmandrescu closed 6 years ago

nmandrescu commented 6 years ago

summernote allows you to attach to the onchange callback . When using react-summernote this is the normal way to capture the change and save it.

The change event is not propagated when image attributes are applied. You have to do at least one interaction with the editor to get the changes reported to the callback.

This is a fix to propagate the change event up when the user applies the image attribute changes and let the user save the changes immediately.

DennisSuitters commented 6 years ago

Thanks for your contribution.