November Happy Hour will be moved to Thursday December 5th.

TinyMce: language file in _protected folder?

Vote:
 

I've created a custom property that uses TinyMce. I got it all working in EPi 10. Now I'm implementing the solution in a EPi 9 site and TinyMce can't find the language-files. Searching for http://localhost:17000/to/UI/CMS/9.6.0.0/ClientResources/Editor/tiny_mce/langs/sv.js

In EPi 10 I solved this by adding the file to C:\Projects\MyTestSite\modules\_protected\CMS\10.0.2.0\ClientResources\Editor\tiny_mce\langs\sv.js

This does not work on my EPi 9 site. Tried to find differences in my config-files, but can't find anything relevant.

The best solution would be to NOT add anything to the _protected folder, but instead point out the language-file through a setting. Seems to be some EPiServer setting. Is this possible?

My custom property looks like:

define([
"dijit",
"dojo",
...
"epi/i18n!epi/cms/nls/tinymce",
"epi/i18n!epi/cms/nls/episerver.tinymce",

"epi-cms/contentediting/editors/TinyMCEEditor",

and then I initialize TinyMce with:

_initializeTinyMce: function () {
                tinymce.init({
                    selector: "#itemDescription",
                    language: "sv"
                });
        },

Tried without success: TinyMce has the setting language_url, but I think that's only for TinyMce4.x (and EPiServer uses 3.x).

#186368
Dec 18, 2017 17:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.