RELEASE 2.9.5 OR ABOVE
Upload all images included in the body as base64 encoded. The uploaded image's src attribute is changed to the uploadPath value returned from the server.
Parameters:
Name | Type | Attribute | Description |
|---|---|---|---|
callbackFunc | Function | Set the callback function to be executed after uploading all images. (optional) |
Example:
Using Promise
editor.uploadBase64Images().then(function() {
editor.getPublishingHtml();
});
Using Callback Function
function callback() {
editor.getPublishingHtml();
}
editor.uploadBase64Images(callback);