tinymce / tinymce-react

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

Editor not visible on page in tinymce v6 #392

Closed mwkho closed 1 year ago

mwkho commented 1 year ago

What is the current behavior? The editor is on the DOM, yet it's visibility is set to hidden

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.

Followed the steps on https://www.tiny.cloud/docs/tinymce/6/react-cloud/ to integrate it as a component

What is the expected behavior? Editor component should be visible and rendered with the TinyMCE

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-react?

TinyMCE : 6.2.0 tinymce-react: 4.2.0

image

it worked in TinyMCE latest of v5 Seems like modal.js is not being found image

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3027

tiny-james commented 1 year ago

That's quite odd since it should be getting the model from the same location it gets TinyMCE.

Based on the error messages I would assume it is loading TinyMCE from: http://localhost:3000/static/js/

But if you followed that guide you linked then TinyMCE would be coming from the cloud so you'd see requests to cdn.tiny.cloud in your network tab.

tiny-james commented 1 year ago

I suspect you might be self-hosting the editor, in which case you might want to follow this guide: https://www.tiny.cloud/docs/tinymce/6/react-pm-host/

tiny-james commented 1 year ago

Closing due to lack of information to diagnose the problem.