Function: uploadImages()
ts
function uploadImages(editor, files): boolean;Upload files chosen elsewhere (a file input, a button) at the selection, through the editor's imageUpload() extension. Returns false when the editor is not mounted or has no imageUpload().
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
files | readonly File[] | FileList | null |
Returns
boolean
Example
ts
input.addEventListener('change', () => uploadImages(editor, input.files))