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:
Promise 사용
editor.uploadBase64Images().then(function() { editor.getPublishingHtml(); });
Callback 함수 사용
function callback() { editor.getPublishingHtml(); } editor.uploadBase64Images(callback);