Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda