spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
815 stars 256 forks source link

changing base path to accomodate assets prefix does not change 'tinymce' helper #77

Closed patrickmcelwee closed 11 years ago

patrickmcelwee commented 11 years ago

I have added an assets prefix in config/application.rb:

config.assets.prefix = "/vivo_admin/assets"
config.tinymce.base = "/vivo_admin/assets/tinymce"

This is correctly picked up when specifying the paths for preinit.js, tinymce.js, and tiny_mce_src.js.

But the javascript tags added by the <%= tinymce %> helper on the page with the editor does not include the prefix. Instead, it looks like this, lacking the "/vivo_admin/" prefix:

<script id="mce_0" type="text/javascript" src="http://localhost:3000/assets/tinymce/langs/en.js?3.5.7">
<script id="mce_1" type="text/javascript" src="http://localhost:3000/assets/tinymce/themes/advanced/editor_template.js?3.5.7">

I've gone through the source code and there doesn't seem to be an option I can set to fix this. Is that right?

patrickmcelwee commented 11 years ago

This was fixed by pointing to github (48f084f9ab500dc3e8a5da9f9b48c7e687e83bf9).

Thanks!!!