Skip to content Skip to sidebar Skip to footer

Issues With Files Loading Based On Path

I'm using rails 2, and in one of the plugin I'm working on, I found this weird issue, I've TinyMce 4 customized text editor. I've loaded the script at the beginning of the page, in

Solution 1:

I suspect your new page has a url like : /post/new whereas your edit page has a url like /post/1/edit

Because the edit URL has an extra / you need to go up an extra level in the relative path in your script tag.

Try changing the TinyMCE include to be an absolute path, not a relative one:

<scripttype="text/javascript"src="/tinymce/tinymce.min.js"></script>

Post a Comment for "Issues With Files Loading Based On Path"