tinymce / tinymce-react

Offical TinyMCE React component
MIT License
937 stars 152 forks source link

TypeError: editor.setMode is not a function #458

Closed cMack87 closed 7 months ago

cMack87 commented 1 year ago

Editor.js:168 refers to the function "setMode" which was deprecated and then removed, as described here.

TinyITAdmin commented 1 year ago

Ref: INT-3195

tiny-james commented 1 year ago

This is working as intended. Check the comment on the source code to see why: https://github.com/tinymce/tinymce-react/blob/main/src/main/ts/Utils.ts#L104-L112

Basically this component supports TinyMCE 4, 5 and 6. TinyMCE 4 does not have the modern way of setting this value.