images_dataimg_filter image to blob conversion
What is the current behavior? Describe the bug images_dataimg_filter was deprecated and removed and there isnt any alternative
Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.
What is the expected behavior? There should be a way to disable blob conversion when the file input is data uri, it doesnt matter where data uri is put in it always automatically gets converted to blob.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE? 6.0.1
Hi @Don-Cryptus,
You found a solution?
Hi @icaparros-at-wiris,
sadly no.
Is any progres here?
Here is how I solved this issue:
images_upload_handler: () => {
return new Promise((resolve, reject) => {
reject({
message: 'Please use file uploader',
remove: true,
})
})
},
https://www.tiny.cloud/docs/tinymce/6/file-image-upload/#images_upload_handler
this is working for me:
images_upload_handler: function (blobInfo, success, failure) {
const base64str = "data:" + blobInfo.blob().type + ";base64," + blobInfo.base64();
return Promise.resolve(base64str);
},