Rubber
Rubber

Reputation: 117

Is there some alternative to disabling the logic that converts base64 images into blobs?

The 'images_dataimg_filter' option can also be used to specify a filter predicate function for disabling the logic that converts base64 images into blobs while within the editor.

enter image description here

With the new version of TinyMCE 6.1.0 the option images_dataimg_filter was removed. Is there some alternative to disabling the logic that converts base64 images into blobs.

Please share if any way to solve this.

Thanks

Upvotes: 2

Views: 163

Answers (1)

Jonathan Willcock
Jonathan Willcock

Reputation: 5235

I am too late to help you, but hopefully someone else who lands here by googling the same issue will benefit:

I found the following solution here:

Add this to your init:

images_upload_handler: function (blobInfo, success, failure) {
  const base64str = "data:" + blobInfo.blob().type + ";base64," + blobInfo.base64();
  return Promise.resolve(base64str);
},

Upvotes: 0

Related Questions