tinymce / tinymce-blazor

Blazor integration
MIT License
45 stars 13 forks source link

Self-Hosting TinyMCE and Blazor Server #55

Closed masterparser closed 1 year ago

masterparser commented 1 year ago

I have no issue using TinyMCE when it is served from Tiny Cloud to my Blazor Server web app. However, when I use my own CDN to serve tinymce.min.js to that app, I see a blank spot where I expect TinyMCE to appear and upon clicking 'Inspect' in Edge, I see error messages indicating that the following files are missing:

missing js files: themes/silver/theme.min.js models/dom/model.min.js icons/default/icons.min.js

missing css files: content/default/content.min.css ui/oxide/content.min.css skins/ui/oxide/skin.min.css

When I used Tiny Cloud again, I clicked 'Inspect' and found that these files had indeed been downloaded and I saved them so that they could be uploaded to my CDN. Thankfully, I was then able to successfully self-host TinyMCE.

I would like to know, where may I officially download these now previously missing files? I feel that saving them via my browser is "hacky". As well, can the official documentation be updated to alert developers of the need, when self-hosting TinyMCE, to serve these files in addition to tinymce.min.js?

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

Ref: INT-3014

masterparser commented 1 year ago

UPDATE: I found those files in the ZIP file that contains tinymce.min.js. Obviously, I missed them. Now, my second question is the only one that remains to be answered.

jscasca commented 1 year ago

All the docs mention to extract the zip file in the location of your choice. I believe this zip file includes all the required elements to run TinyMCE. This component assumes you are either running from CDN or have your self-hosted environment.

Since setting up a self-hosted environment is not a Blazor only task, you might find better answers in the TinyMCE repo or the TinyMCE docs