Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Not precompiling #5

Closed
aaronchi opened this issue Apr 15, 2012 · 4 comments
Closed

Not precompiling #5

aaronchi opened this issue Apr 15, 2012 · 4 comments
Labels

Comments

@aaronchi
Copy link

I'm not sure if there's something I'm missing, but trying to use this plugin on rails 3.2, the production environment can't find the js files unless I add them explicitly to config.assets.precompile. Are these supposed to be added to the tinymce-rails bundle automatically?

@PerfectlyNormal
Copy link
Owner

I don't have a Rails 3.2 app handy right now, but I'll take a look and see if I can't figure it out

@anguyen-elc
Copy link

@aaronchi How do you make it work? I got same problem, too!

@ivliaspiration
Copy link

I solved it with the following app/assets/javascripts/application.js:

//= require jquery
//= require jquery_ujs
//= require tinymce-jquery
//= require tinymce/plugins/uploadimage/editor_plugin.js
//= require tinymce/plugins/uploadimage/langs/en.js
//= require tinymce/plugins/uploadimage/langs/en_dlg.js
//= require_tree .

I'm not an expert in assets pipeline, but I think that there should be some generic js file that has require_tree . for the plugin files. Besides, I see in log that tinymce-rails itsef copies its assets to vendor during precompile (not sure how it is implemented, if I figure it out, I'll make a pull request).

@ffloyd
Copy link
Contributor

ffloyd commented Aug 13, 2012

I've made a pull request with solution of this problem. #14

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

No branches or pull requests

5 participants