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

Couldn't find file 'tinymce-jquery' #290

Open
spatarel opened this issue Aug 5, 2022 · 2 comments
Open

Couldn't find file 'tinymce-jquery' #290

spatarel opened this issue Aug 5, 2022 · 2 comments

Comments

@spatarel
Copy link

spatarel commented Aug 5, 2022

I just upgraded from tinymce-rails 5.10.5 to 6.1.2.

When running bundle exec rake assets:precompile I get this error:

rake aborted!
Sprockets::FileNotFound: couldn't find file 'tinymce-jquery' with type 'application/javascript'
Checked in these paths: 
...

If I try running the app in development I get a similar error:

ActionView::Template::Error (couldn't find file 'tinymce-jquery' with type 'application/javascript'
Checked in these paths: 
  /date/Programare/eclipse-ruby/pregatire/app/assets/config
  /date/Programare/eclipse-ruby/pregatire/app/assets/images
  /date/Programare/eclipse-ruby/pregatire/app/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/app/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/images
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/jquery-rails-4.5.0/vendor/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/tinymce-rails-6.1.2/app/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/tinymce-rails-6.1.2/app/assets/source
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/tinymce-rails-6.1.2/vendor/assets/config
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/tinymce-rails-6.1.2/vendor/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/bundler/gems/active_scaffold-06366323e101/app/assets/images
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/bundler/gems/active_scaffold-06366323e101/app/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/bundler/gems/active_scaffold-06366323e101/app/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/bundler/gems/active_scaffold-06366323e101/vendor/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/bundler/gems/active_scaffold-06366323e101/vendor/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/chosen-rails-1.10.0/vendor/assets/images
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/chosen-rails-1.10.0/vendor/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/chosen-rails-1.10.0/vendor/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/actioncable-5.2.8.1/lib/assets/compiled
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/activestorage-5.2.8.1/app/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/actionview-5.2.8.1/lib/assets/compiled
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/turbolinks-source-5.2.0/lib/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/lib/assets/bower_components
  /date/Programare/eclipse-ruby/pregatire/vendor/assets/bower_components
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/bootstrap-sass-3.4.1/assets/stylesheets
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/bootstrap-sass-3.4.1/assets/javascripts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/bootstrap-sass-3.4.1/assets/fonts
  /date/Programare/eclipse-ruby/pregatire/vendor/bundle/ruby/2.7.0/gems/bootstrap-sass-3.4.1/assets/images):

It seems to me the JS file is missing from the gem and is a similar issue to #40. Please correct me if I'm wrong.

What can I do to fix things?

@spohlenz
Copy link
Owner

spohlenz commented Aug 5, 2022

The jQuery integration was removed from the TinyMCE core distribution starting with TinyMCE 6. It has been moved to https://github.com/tinymce/tinymce-jquery with some quick start instructions at https://www.tiny.cloud/docs/tinymce/6/jquery-pm/.

I'd be open to a pull request that brings it back into tinymce-rails (with an automated update/build process). However I haven't had a chance to look at it myself.

@frenkel
Copy link
Contributor

frenkel commented Aug 16, 2022

Note that the proposed solution of @spohlenz is only needed if you did you jQuery.tinymce. If you didn't you can just replace 'tinymce-jquery' with 'tinymce' and all will work fine.

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

3 participants