tinymce-docs
tinymce-docs copied to clipboard
I can't find what I'm looking for: integrations/react.md
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