I updated the rails app from 3.2.2 to 5.1.4. I upgraded tinymce to 4.7.9. But on every page I get this error on the console, and tinymce does not work there. Error on console:
Uncaught Error: Could not find control by type: button
Gemfile
gem 'jquery-rails'
application.js
//= require tinymce-jquery
instruction / _form
<%= tinymce_assets %> <p> <%= f.label :mt_inst %><br /> <%= f.text_area :mt_inst, :class => "tinymce", :rows => 40, :cols => 120 %> </p> <%= tinymce %>
source share