Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
TinyMCE 6 searches the needed js and css files differently during locally during than on server

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!