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.
2)Declare and set value of given variable
3)Call suneditor functions