tinymce icon indicating copy to clipboard operation
tinymce copied to clipboard

images_dataimg_filter image to blob conversion

Open 0-don opened this issue 3 years ago • 6 comments

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

0-don avatar Apr 15 '22 15:04 0-don

Hi @Don-Cryptus,

You found a solution?

icaparros-at-wiris avatar Apr 22 '22 07:04 icaparros-at-wiris

Hi @icaparros-at-wiris,

sadly no.

0-don avatar Apr 22 '22 08:04 0-don

Is any progres here?

mantaszv avatar Jan 08 '24 12:01 mantaszv

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

n1ckyrush avatar Feb 08 '24 19:02 n1ckyrush

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);
},

fluse avatar Feb 20 '24 10:02 fluse