tinymce / tinymce-react

Offical TinyMCE React component
MIT License
959 stars 156 forks source link

Type 'string' is not assignable to type 'never' #461

Closed sh-shoaib closed 10 months ago

sh-shoaib commented 1 year ago

When passing the value of the 'selector' attribute as div#${id} then it is throwing an error.

Error: Type 'string' is not assignable to type 'never'

TinyMCE Error

As the selector attribute type is defined as never.

TinyITAdmin commented 1 year ago

Ref: INT-3208

danoaky-tiny commented 10 months ago

The selector prop isn't used or needed for tinymce-react. See: https://www.tiny.cloud/docs/tinymce/6/react-ref/#init

When using tinymce-react:

  • The init prop does not require the selector or target options
  • If the selector, target, or readonly options are set using the init prop, they will be overridden by the integration.

We've intentionally omitted the selector and target props from RawEditorSettings because of this.