ckeditor4-angular icon indicating copy to clipboard operation
ckeditor4-angular copied to clipboard

Easyimage don't trigger change after upload success when using angular reactive forms

Open thalisvilela opened this issue 1 year ago • 3 comments

When using easyimage with Reactive forms, it does not trigger the change on the form control, passing invalid data to the backend. Only the placeholder image element tiggers the change, the one having the placeholder blob address:

<figure class="easyimage easyimage-full"><img alt="" src="blob:http://localhost:4200/ca2c741f-ea9d-4d67-8cbb-379d050f6ddd" width="3840" />
<figcaption></figcaption>

When the image upload response arrive, the change to the src parameter to the final image url dont't trigger change, so, if you hit save in your app, the blob value gets sent to whatever backend functionality.

If after the image upload we make any change, then the correct src value with the correct image url gets passed.

thalisvilela avatar Dec 21 '22 23:12 thalisvilela