When using TinyMCE <Editor /> component in a Remix run app, the component loaded in development but not load in production.
Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
Create remix run app
Install and import and use Editor component in the page.
set tinymceScriptSrc opstion with the public url of tinymce.min.js hosted in hosting or tinymce url from unpkg, and even use global tinymce/cloud.
deploy app to production
check tinymce in webpage
What is the expected behavior?
Tinymce Editor loaded in production.
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 v 6.3.1
Firefox, Chrome, IE
Linux
The same version is working in development version of the code which more or less the same code deployed in production, but somehow not loaded in production.
Loading module from “https://kartuns.space/build/manifest-9EDEEC43.js” was blocked because of a disallowed MIME type (“text/html”).
[buatiklan](https://kartuns.space/alumni/buatiklan)
Loading failed for the module with source “https://kartuns.space/build/manifest-9EDEEC43.js”. [buatiklan:18:1](https://kartuns.space/alumni/buatiklan)
Loading module from “https://kartuns.space/build/root-MAERP7RJ.js” was blocked because of a disallowed MIME type (“text/html”).
[buatiklan](https://kartuns.space/alumni/buatiklan)
Loading failed for the module with source “https://kartuns.space/build/root-MAERP7RJ.js”. [buatiklan:18:1](https://kartuns.space/alumni/buatiklan)
Loading module from “https://kartuns.space/build/routes/alumni-FSIWAD2R.js” was blocked because of a disallowed MIME type (“text/html”).
[buatiklan](https://kartuns.space/alumni/buatiklan)
Loading failed for the module with source “https://kartuns.space/build/routes/alumni-FSIWAD2R.js”. [buatiklan:18:1](https://kartuns.space/alumni/buatiklan)
Loading module from “https://kartuns.space/build/routes/alumni/buatiklan-GIW6J7XP.js” was blocked because of a disallowed MIME type (“text/html”).
[buatiklan](https://kartuns.space/alumni/buatiklan)
Loading failed for the module with source “https://kartuns.space/build/routes/alumni/buatiklan-GIW6J7XP.js”. [buatiklan:18:1](https://kartuns.space/alumni/buatiklan)
Ok. The error is not part of tinymce-react, it's me that incorrectly run a build command in production. After creating the correct build by issuing "npm run build" everything works normally.
What is the current behavior?
When using TinyMCE
<Editor />
component in a Remix run app, the component loaded in development but not load in production.Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
What is the expected behavior?
Tinymce Editor loaded in production.
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or
tinymce-react
?The same version is working in development version of the code which more or less the same code deployed in production, but somehow not loaded in production.
code example:
and console error: