I'm using suneditor-react with typescript. I want to get the content of the editor to create a PDF. But the problem is when I try to access a ref of the SunEditor, I got the following error
Property 'ref' does not exist on type 'IntrinsicAttributes & SunEditorReactProps & { children?: ReactNode; }'.
Further, I couldn't find a getContents() prop as well in the SunEditorReactProps. But it is in thier example page.

Please give your ideas.
Hi I am the author of the SunEditor React Component you can learn how to attach ref to the suneditor react component (in typescript) here.