Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
patrickmcelwee opened this issue Oct 17, 2012 · 1 comment

Comments

@patrickmcelwee
Copy link

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
Copy link
Author

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

Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant