According to this doc, first gem install ckeditor. Then I tried to add maximize button on toolbar. As shown in the ckeditor doc, I downloaded the plugin files:
and put them into Rails javascripts/plugins folder:
Then added the ck config option in ckeditor/config.js
config.extraPlugins = 'maximize';
Finally added Rails.application.config.assets.precompile += ['ckeditor/*'] to Rails config/initializers/assets.rb
After all these have done, the maximize button still didn't show up in ck toolbar.
I googled a lot(there is really little information about this) and finally I realized the plugin should be enabled in toolbar config options.
Most importantly, the maximize's first letter must be capitalized or it won't work anyway, which really sucks indeed!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I used ckeditor 4 in my Rails 5 project.
According to this doc, first
gem install ckeditor
. Then I tried to add maximize button on toolbar. As shown in the ckeditor doc, I downloaded the plugin files:and put them into Rails
javascripts/plugins
folder:Then added the ck config option in
ckeditor/config.js
Finally added
Rails.application.config.assets.precompile += ['ckeditor/*']
to Railsconfig/initializers/assets.rb
After all these have done, the maximize button still didn't show up in ck toolbar.
I googled a lot(there is really little information about this) and finally I realized the plugin should be enabled in toolbar config options.
Most importantly, the
maximize
's first letter must be capitalized or it won't work anyway, which really sucks indeed!