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

Missing types from IAllProps['init']

Open RubenZx opened this issue 11 months ago • 1 comments

Hey guys,

after updating @tinymce/tinymce-react to v6.0.0 I have noticed that the types that I was using to type the props for my custom Editor component have disappeared as you can see in the following image:

Image

In the previous version (v5.1.1) I could use these types to correctly type my custom props in my custom Editor component, in that case the type from Init['formats'] was formats?: Formats | undefined. I also use it for typing the images_upload_handler, but it seems that on v6.0.0 the type from Init['images_upload_handler'] is {}. Previously it was (blobInfo: BlobInfo, progress: ProgressFn) => Promise<string>.

Is there something missing in the new version or should I change my types?

RubenZx avatar Mar 14 '25 15:03 RubenZx

Any help on this?

I have checked that the types from tinymce are correct, so I'll be using them to type my component props while the types from @tinymce/tinymce-react are not correctly added.

RubenZx avatar Jun 18 '25 11:06 RubenZx