galetahub / ckeditor

Ckeditor 4.x integration gem for rails
https://ckeditor.com/ckeditor-4/
MIT License
2.22k stars 881 forks source link

Maximize will not work if you do not enable it in toolbar config options #902

Closed stevenup closed 3 years ago

stevenup commented 3 years ago

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:

screenshot_20201213_1631

and put them into Rails javascripts/plugins folder:

screenshot_20201213_1653

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.

image

Most importantly, the maximize's first letter must be capitalized or it won't work anyway, which really sucks indeed!

stale[bot] commented 3 years ago

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.