-
Notifications
You must be signed in to change notification settings - Fork 258
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
install issue - TinyMCE JS files not installed? #40
Comments
The Are you getting any particular errors? |
It's a file not found error, pasted below - Sprockets::FileNotFound in Home#index Showing /Users/scott/Sites/culture-engine/app/views/layouts/index.html.erb where line #7 raised: couldn't find file 'tinymce-jquery' I can get you more detailed info tomorrow if you'd like. On Feb 7, 2012, at 5:57 PM, Sam Pohlenz wrote:
|
@zetlan You're not the only one to have experienced this, but for the life of me I haven't been able to reproduce it myself. What would be really helpful is if you could create a GitHub repo with an app that experiences the issue (including Gemfile.lock). I'd really like to track this one down. |
Okay, I think I know what's going on. In trying to reproduce the error, I discovered I couldn't — and then I realized I was serving the test app via WEBrick (rails server) but serving my app via Phusion Passenger ("mod_rails" inside apache). Restarting the apache server solved the initial issue; now Passenger knows about the new gem and its asset path. I'm now getting bit by issue #39, but I'll work that out separately. Interestingly, the usual method of restarting the app (touch tmp/restart.txt) does not appear to be sufficient; I actually had to restart apache. |
In development env, if I set config.serve_static_assets = false, the langs/en.js and editor_template.js will be missing. |
Probably unrelated, but might provide a clue or help someone else. I developed a small plugin for TinyMCE and packaged it as a gem, with |
@PerfectlyNormal That's correct. Adding |
Two years later, and the issue has cropped up again. This time, I think I've figured it out: the tagged versions in GitHub and on RubyGems don't include the advanced theme, which my app relies on. My short-term workaround was to clone master and copy the files out of tinymce-rails/app/assets/javascripts and tinymce-rails/vendor/assets/javascripts into my app/assets/javascripts, so they're all available at the latest version in my own asset pipeline. But is there any reason why you don't have all the files in the right place in the gem? I would love it if you could:
and then I can go back to just using what's in the gem, instead of having to maintain my own copies of these javascripts. For now, though, I'm freezing to 4.0.2 (since that's what I can see in GitHub). |
@zetlan The advanced theme was removed from TinyMCE 4.0 and has been replaced with the modern theme. If you're relying on the advanced them, you will want to downgrade to the 3.5 branch (http://rubygems.org/gems/tinymce-rails/versions/3.5.9). I do need to update the releases list though. I thought I had that set up automatically but apparently not. |
I'm probably missing something, but followed the directions in the Readme to add tinymce-rails to my gemfile, then run bundle update. So, now the gem is installed, but it doesn't appear that any of the tinymce JS appears anywhere in my asset pipeline.
Is there a require, an extra path, or some extra installation I'm supposed to do beyond what's listed in the Readme? Am I supposed to separately install the TinyMCE JS from TinyMCE? If so ... does it matter what version I grab?
The text was updated successfully, but these errors were encountered: