spohlenz / tinymce-rails

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

Rails does not request assets in tinymce folder in production #174

Open steverob opened 9 years ago

steverob commented 9 years ago

Hi I'm using tinymce-rails 4.1.6 and I have this issue where in production Rails is requesting the plugin files at the URL - http://abc.cloudfront.net/assets/plugins/autolink/plugin.js

We're using [asset_sync](https://github.com/rumblelabs/asset_sync) to sync the assets to CloudFront once precompile is done. And Im able to access these scripts at http://abc.cloudfront.net/assets/tinymce/plugins/autolink/plugin.js (see /tinymce in path).

I've required tinymce this way - //= require tinymce/tinymce.

Thanks in advance :)

muriloime commented 8 years ago

Hi @steverob , did you find a solution for this? I am currently having the same issue.

Eusebius1920 commented 7 years ago

Seeing the same issue here. Any advice? @steverob @muriloime

EDIT: tinymce-rails@4.4.3 with rails@5.0.0.1

aepyornis commented 7 years ago

I encountered a similar situation in production, using asset_sync and cloudfront.

I found that setting the configuration to :copy instead of the default :compile worked for me:

config.tinymce.install = :copy

I did have to clear out public/assets after switching from :compile to :copy