I currently use the newest version of TinyMCE (6.0.3) in my knockoutJS project, but I can't deal with the fact that if I run it locally, it searches for the theme.min.js file here: http://localhost:50013/Scripts/Scripts/tinymce/themes/silver/theme.min.js, but if I deploy it and check it through the server url, it searches the same file here: http://[URL]:[PORT]/Scripts/tinymce/themes/silver/theme.min.js. That should be the correct one.
What is the reason of the second "Scripts" folder in the Url when running it locally and how can I manage to work in both setups?
This is how I initialize tinyMCE in my knockoutJS function:
tinymce.suffix = '.min';
tinymce.baseURL = '../Scripts/tinymce';
tinymce.init({
document_base_url: '../Scripts/tinymce',
theme_url: '../tinymce/themes/silver/theme.min.js',
skin_url: '../tinymce/skins/ui/oxide',
selector: '.textArea',
toolbar: "insertfile undo redo | styleselect | bold italic fontsizeselect | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor",
plugins: 'lists advlist',
menubar: false,
branding: false,
height: 250
});
The main tinyMCE file is located here: Scripts\tinymce\tinymce.min.js the theme is here: Scripts\tinymce\themes\silver\themes.min.js and skins are here: Scripts\tinymce\skins\ui...
Apart of these, I have the tinymce-jquery.min.js (..\Scripts\tinymce\tinymce-jquery\tinymce-jquery.min.js) and the wysiwyg.js (..\Scripts\tinymce\tinymce-knockout-binding\src\wysiwyg.js). As far as I know, i need both to use tinyMCE correctly with KnockoutJS.
This is also the case when trying to get all the other js and css files inside tinymce folder.