tinymce-docs icon indicating copy to clipboard operation
tinymce-docs copied to clipboard

I can't find what I'm looking for: integrations/react.md

Open shyamilitc opened this issue 2 years ago • 0 comments

Hi, I am using react typescript. images_upload_handler: function(blobInfo: { blob: () => { (): any; new(): any; type: string; }; base64: () => string; }, success: (arg0: string) => void, failure: any) {

          success("data:" + blobInfo.blob().type + ";base64," + blobInfo.base64());
      },
      removed_menuitems: "image",

this is my code copied from the website. But its giving the error below. Type '(blobInfo: { blob: () => { (): any; new (): any; type: string; }; base64: () => string; }, success: (arg0: string) => void, failure: any) => void' is not assignable to type 'UploadHandler'. Target signature provides too few arguments. Expected 3 or more, but got 2.ts(2322) Please let me know where I have gone wrong

shyamilitc avatar Aug 02 '23 06:08 shyamilitc