tinymce-rails icon indicating copy to clipboard operation
tinymce-rails copied to clipboard

Rails does not request assets in tinymce folder in production

Open steverob opened this issue 9 years ago • 3 comments

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 :)

steverob avatar Jun 16 '15 14:06 steverob

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

muriloime avatar Aug 12 '16 20:08 muriloime

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

EDIT: [email protected] with [email protected]

Eusebius1920 avatar Nov 07 '16 10:11 Eusebius1920

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

aepyornis avatar Jun 29 '17 19:06 aepyornis