uploadBase64Images

Release 2.9.5+

Uploads all base64-encoded images embedded in the body. Each image's src is updated to the uploadPath returned by the server.

Parameters

NameTypeDescription
[callbackFunc]function(optional) Callback to run after all uploads complete

Example

// Promise
editor.uploadBase64Images().then(function () {
  editor.getPublishingHtml();
});

// Callback
function callback() {
  editor.getPublishingHtml();
}
editor.uploadBase64Images(callback);