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:
editor.uploadBase64Images().then(function() { editor.getPublishingHtml(); }); |
function callback() { editor.getPublishingHtml(); } editor.uploadBase64Images(callback); |