Typedef

ImageCustomResizeFormValidatorCallback (image/imageresize/ui)

@ckeditor/ckeditor5-image/src/imageresize/ui/imagecustomresizeformview

typedeffunction

Callback used by ImageCustomResizeFormView to check if passed form value is valid.

* If `undefined` is returned, it is assumed that the form value is correct and there is no error.
* If string is returned, it is assumed that the form value is incorrect and the returned string is displayed in the error label

Filtering

Parameters

form : ImageCustomResizeFormView

Returns

string | undefined