Tinymce editor plugin not referencing core tinymce files correctly

Tinymce editor plugin not referencing core tinymce files correctly

drewturkdrewturk Posts: 27Questions: 8Answers: 0

I am including the editor.tinymce.js under the same 'parent' folder as the other editor and datatables files. But when I try to open the editor modal where the tinymce field type is used, I see that core tinymce files are being referenced relative to the editor files.

Failed to load: http://andrew.cbtat.com/plugins/editor-tinymce/themes/modern/theme.js

your plugin file for tinymce is inluded here: /plugins/editor-tinymce/editor.tinymce.js but my core tinymce files are here: /bower_components/tinymce/...

My problem is, when it is looking for themes or skins, etc, it is referencing them relative to your plugin file? Any ides?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,573Questions: 1Answers: 10,483 Site admin
    Answer ✓

    I would have thought it would resolve them relative to the load where it is loaded from. My local example loads TinyMCE from //tinymce.cachefly.net/4.0/tinymce.min.js for example and the theme it loaded from that CDN.

    Allan

This discussion has been closed.