You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a tinymce editor in my react project (Self hosted - version 6.8.2). So I was looking through the docs and trying out some stuffs and I saw this 'selector' which can be used inside init. But when I try to add it like this :
selector: 'textarea',
Then the typescript error shows :
Type 'string' is not assignable to type 'undefined'.
So when I checked I found out that the type the gave to the selector is:
selector?: undefined
Does anyone know anything about this? Or is there any workaround for this?
The text was updated successfully, but these errors were encountered:
I suspect that's because you aren't supposed to use the selector option in our React integration, you use the <Editor> component instead - but I'll transfer this to the react repository so that can be confirmed.
Hi,
I have a tinymce editor in my react project (Self hosted - version 6.8.2). So I was looking through the docs and trying out some stuffs and I saw this 'selector' which can be used inside init. But when I try to add it like this :
selector: 'textarea',
Then the typescript error shows :
Type 'string' is not assignable to type 'undefined'.
So when I checked I found out that the type the gave to the selector is:
selector?: undefined
Does anyone know anything about this? Or is there any workaround for this?
The text was updated successfully, but these errors were encountered: