Hi,
I want to use the image editor component for saving edited images to my backend. Can i overwrite the save method, so it doesn't download the image locally to the client.
One idea was to use the beforeSaved Event and overwrite the default behaviour, but it seems a bit hacky.
Another idea was the following, but it doesn't work
const imageEditor: ImageEditorComponent = getComponent(document.getElementById('image-editor')!, 'image-editor');
this.imageEditor.setProperties({
save(args: any): void {
// Custom save logic goes here
console.warn('Custom save function called!');
}
});