该插件实现用 CKEditor 替代默认的富文本编辑控件。
目前只在Redmine 4.0上使用过。
克隆自github.com/a-ono/redmine_ckeditor,我在此基础上对 CKEditor 的功能做了扩充,主要是增加了以下功能。
1、加入了代码控件,可以高亮显示代码,支持多种语言和主题;
2、支持base64格式插入图片;
3、可插入表情;
-
Download the zip package and extract the directory that it contains into the plugins directory (make sure the name is redmine_ckeditor)
-
Install the required gems (in the Redmine root directory)
bundle install --without development test
-
Execute migration
rake redmine:plugins:migrate RAILS_ENV=production
-
Start Redmine
-
Change the text formatting (Administration > Settings > General > Text formatting) to CKEditor
-
Configure the plugin (Administration > Plugins > Configure)
-
Replace the plugin directory (plugins/redmine_ckeditor)
-
Install the required gems
bundle install --without development test
-
Execute migration
rake redmine:plugins:migrate RAILS_ENV=production
-
Delete old assets
rm -r public/plugin_assets/redmine_ckeditor
-
Restart Redmine
-
Change the text formatting (Administration > Settings > General > Text formatting) to textile
-
Rollback the migration
rake redmine:plugins:migrate NAME=redmine_ckeditor VERSION=0 RAILS_ENV=production
-
Delete the plugin directory (plugins/redmine_ckeditor)
You can download plugins from Add-ons Repository. To activate the plugin you have to copy the plugin directory into assets/ckeditor-contrib/plugins and restart Redmine, then configure toolbar settings.
You can select third-party skins placed in assets/ckeditor-contrib/skins directory.
You can configure CKEditor settings and HTML sanitizer by using the REDMINE_ROOT/config/ckeditor.yml file.
cp plugins/redmine_ckeditor/config/ckeditor.yml.example config/ckeditor.yml