tinymce.util.ImageUploader

This class handles uploading images to a back-end server.

Added in TinyMCE 5.7.

Summary

Methods

Name Summary Defined by

upload()

Uploads images to the configured image upload URL (images_upload_url) or passes the images to the defined image upload handler function (images_upload_handler).

ImageUploader

Methods

upload()

upload(blobInfos: Array, showNotification: boolean)

Uploads images to the configured image upload URL (images_upload_url) or passes the images to the defined image upload handler function (images_upload_handler).

Parameters

  • blobInfos (Array) - A BlobInfo array containing the image data to upload. A BlobInfo can be created by calling editor.editorUpload.blobCache.create().

  • showNotification (boolean) - (Optional) When set to true, a notification with a progress bar will be shown during image uploads.