TinyMCE not finding tiny-mce-jquery

13 views
Skip to first unread message

Dennis Bulgatz

unread,
Mar 10, 2023, 2:47:33 AM3/10/23
to ActiveScaffold : Ruby on Rails Gem
Hi Sergio,

I wanted to try out TinyMCE.  But cannot find one of the needed assets tiny-mce-jquery.

Do you know where the gem is supposed to put this file, and/or if there is someplace I need to add a search path?

I tried the tutorial here and had no issues getting a simple rails site to use TinyMCE

Have you seen this before?

Thanks for any suggestions you might have.

rake aborted!

Sprockets::FileNotFound: couldn't find file 'tinymce-jquery' with type 'application/javascript'

Checked in these paths: 

  /Users/dbulgatz/aramis2/aramis/app/assets/config

  /Users/dbulgatz/aramis2/aramis/app/assets/images

  /Users/dbulgatz/aramis2/aramis/app/assets/javascripts

  /Users/dbulgatz/aramis2/aramis/app/assets/stylesheets

  /Users/dbulgatz/aramis2/aramis/vendor/assets/javascripts

  /Users/dbulgatz/aramis2/aramis/vendor/assets/stylesheets

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/tinymce-rails-6.3.2/app/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/tinymce-rails-6.3.2/app/assets/source

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/tinymce-rails-6.3.2/vendor/assets/config

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/tinymce-rails-6.3.2/vendor/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold_export-3.4.0/app/assets/images

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold_export-3.4.0/app/assets/stylesheets

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/images

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/jquery-ui-rails-6.0.1/app/assets/stylesheets

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/jquery-rails-4.5.1/vendor/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold-3.6.17/app/assets/images

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold-3.6.17/app/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold-3.6.17/app/assets/stylesheets

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold-3.6.17/vendor/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/active_scaffold-3.6.17/vendor/assets/stylesheets

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/actioncable-6.1.7.2/app/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/activestorage-6.1.7.2/app/assets/javascripts

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/actionview-6.1.7.2/lib/assets/compiled

  /Users/dbulgatz/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/turbolinks-source-5.2.0/lib/assets/javascripts

  /Users/dbulgatz/aramis2/aramis/node_modules

 

Tasks: TOP => assets:precompile

(See full trace by running task with --trace)

Sergio Cambra

unread,
Mar 10, 2023, 10:24:56 AM3/10/23
to ActiveScaffold : Ruby on Rails Gem, Dennis Bulgatz
Hi Dennis

The changes to support tinymce6 are in master branch, are you using master or
3.6.x?

Best regards

El viernes, 10 de marzo de 2023 8:47:33 (CET) Dennis Bulgatz escribió:
> Hi Sergio,
>
> I wanted to try out TinyMCE. But cannot find one of the needed assets
> tiny-mce-jquery.
>
> Do you know where the gem is supposed to put this file, and/or if there is
> someplace I need to add a search path?
>
> I tried the tutorial here
> <https://www.tiny.cloud/docs/tinymce/6/rails-third-party/> and had no

Dennis Bulgatz

unread,
Mar 10, 2023, 12:41:00 PM3/10/23
to ActiveScaffold : Ruby on Rails Gem
Thanks.  Made progress, but still not quite there...

 Switched to Master
snippet from Gemfile

git 'https://github.com/activescaffold/active_scaffold/', branch: 'master' do
  gem 'active_scaffold'
end
#gem 'active_scaffold', '~>3.6.10'
gem 'jquery-rails'

snippet from Gemfile.lock
remote: https://github.com/activescaffold/active_scaffold/
  revision: ee6e13d702cbc2de3650c7e1e0bb5eb4caffc4fa
  branch: master
  specs:
    active_scaffold (3.6.99)
      cow_proxy (~> 0.3)
      ice_nine (~> 0.11)
      rails (>= 5.2.0)
      request_store (~> 1.3)

tinymce-rails (6.3.2)
      railties (>= 3.1.1)

 That got me to a new issue:
ActionController::RoutingError (No route matches [GET] "/tinymce/themes/advanced/theme.js"): 

Setup per this guide:


Dennis Bulgatz

unread,
Mar 10, 2023, 1:08:54 PM3/10/23
to ActiveScaffold : Ruby on Rails Gem
Sergio, is TinyMCE the most common rich text editor? Or is there something that is a better fit to integrate with AS?

On Friday, March 10, 2023 at 1:47:33 AM UTC-6 Dennis Bulgatz wrote:

Sergio Cambra

unread,
Mar 10, 2023, 2:49:26 PM3/10/23
to ActiveScaffold : Ruby on Rails Gem
It's the only one integrated with AS. I don't know if there is any other which would be easy to integrate, it's the only one I have used with AS.

--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activescaffol...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/activescaffold/c63e8f00-0fe6-45f1-bddc-03381bfcd7cen%40googlegroups.com.

Dennis Bulgatz

unread,
Mar 12, 2023, 11:46:36 PM3/12/23
to ActiveScaffold : Ruby on Rails Gem
The issue I had is that the example provided for how to configure the tinymce options does not work


active_scaffold :product do |conf
conf.columns[:description_html].form_ui = :text_editor 
conf.columns[:description_html].options = { :tinymce => { :theme => 'advanced', :editor_css => '/product_editor.css' } } end

'advanced' is not a valid theme in the current code.  A valid theme is 'silver'

here is what I am currently playing with for tinymce.yml

toolbar:
  - undo redo | formatselect |  bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent
  - image | link
plugins:
  - image
  - link
  - lists
  - advlist
  - code
  - autolink
  - charmap
  - fullscreen
theme: silver

Sergio Cambra

unread,
Mar 13, 2023, 8:02:00 AM3/13/23
to ActiveScaffold : Ruby on Rails Gem, Dennis Bulgatz
That doc is old, and never updated, but it was only a example, the valid
settings should be check with tinymce docs. Anyway, I'm changing advanced to
<theme_name> so it doesn't confuse other people.

El lunes, 13 de marzo de 2023 4:46:36 (CET) Dennis Bulgatz escribió:
> The issue I had is that the example provided for how to configure the
> tinymce options does not work
>
> https://github.com/activescaffold/active_scaffold/wiki/API:-Column
>
> active_scaffold :product do |conf|
> conf.columns[:description_html].form_ui = :text_editor
> conf.columns[:description_html].options = { :tinymce => { :theme => '
> *advanced*', :editor_css => '/product_editor.css' } } end
>
> 'advanced' is not a valid theme in the current code. A valid theme is
> 'silver'
>
> here is what I am currently playing with for tinymce.yml
>
> toolbar:
> - undo redo | formatselect | bold italic backcolor | alignleft
> aligncenter alignright alignjustify | bullist numlist outdent indent
> - image | link
> plugins:
> - image
> - link
> - lists
> - advlist
> - code
> - autolink
> - charmap
> - fullscreen
> *theme: silver*
>
> On Friday, March 10, 2023 at 1:49:26 PM UTC-6 ser...@enpijama.es wrote:
> > It's the only one integrated with AS. I don't know if there is any other
> > which would be easy to integrate, it's the only one I have used with AS.
> >
> > El vie., 10 mar. 2023 19:09, Dennis Bulgatz <dennis...@gmail.com>
> >
> > escribió:
> >> Sergio, is TinyMCE the most common rich text editor? Or is there
> >> something that is a better fit to integrate with AS?
> >>
> >> On Friday, March 10, 2023 at 1:47:33 AM UTC-6 Dennis Bulgatz wrote:
> >>> Hi Sergio,
> >>>
> >>> I wanted to try out TinyMCE. But cannot find one of the needed assets
> >>> tiny-mce-jquery.
> >>>
> >>> Do you know where the gem is supposed to put this file, and/or if there
> >>> is someplace I need to add a search path?
> >>>
> >>> I tried the tutorial here
> >>> <https://www.tiny.cloud/docs/tinymce/6/rails-third-party/> and had no

Dennis Bulgatz

unread,
Mar 14, 2023, 11:19:36 PM3/14/23
to Sergio Cambra, ActiveScaffold : Ruby on Rails Gem

Thanks for updating the doc!

Reply all
Reply to author
Forward
0 new messages