Redmine Ckeditor
该插件为Redmine新增CKEditor富文本编辑功能。由于该插件配置后会将所有项目的录入框更改为ckeditor模式。
发布于: https://github.com/a-ono/redmine_ckeditor 兼容于: Redmine 5.0.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*
最新版本: 1.2.4 更新日期: 2022-11-07 15:45
该插件为Redmine新增CKEditor富文本编辑功能。由于该插件配置后会将所有项目的录入框更改为ckeditor模式。
发布于: https://github.com/a-ono/redmine_ckeditor 兼容于: Redmine 5.0.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.*
最新版本: 1.2.4 更新日期: 2022-11-07 15:45
|
作者: | redmineplugins.cn Admin |
---|---|---|
主页: | https://github.com/a-ono/redmine_ckeditor | |
版本库: | https://github.com/a-ono/redmine_ckeditor.git | |
创建于: | 2022-10-12 | |
当前版本: | 1.2.4 | |
兼容性: | Redmine 5.0.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*, 3.3.*, 3.2.*, 3.1.*, 3.0.* |
该插件为Redmine新增CKEditor富文本编辑功能。由于该插件配置后会将所有项目的录入框更改为ckeditor模式。因此,建议配合该插件可以配合Redmine per project formatting plugin插件使用,可将需要启用ckeditor文本录入模式的项目单独启用。
配置方法
你可以通过在插件目录下创建config/ckeditor.yml文件,对CKEditor做初始化配置(包含HTML元素的安全过滤)
cp plugins/redmine_ckeditor/config/ckeditor.yml.example config/ckeditor.yml
bundle bundle exec rake redmine:plugins:migrate RAILS_ENV=production
常见问题:
{{collapse This is a block of text that is collapsed by default. It can be expanded by clicking a link. }} {{collapse(View details...) With custom link text. }}
兼容性: Redmine 3.0.*, 3.1.*, 3.2.*, 3.3.*, 3.4.*, 4.0.*, 4.1.*, 4.2.*, 5.0.*
文件
redmine_ckeditor-1.2.4.zip (6.42 MB)
兼容性: Redmine 3.0.*, 3.1.*, 3.2.*, 3.3.*, 3.4.*
文件
redmine_ckeditor-1.2.3_修复版.zip (2.62 MB)
兼容性: Redmine 3.0.*, 3.1.*, 3.2.*, 3.3.*, 3.4.*, 4.0.*
文件
redmine_ckeditor-1.2.2.zip (2.6 MB)
redmine_ckeditor_1.2.2_简体中文版.zip (2.6 MB)
兼容性: Redmine 3.0.*, 3.1.*, 3.2.*, 3.3.*, 3.4.*, 4.0.*, 4.1.*
文件
redmine_ckeditor-1.2.3.zip (2.24 MB)
rich-1.5.2.zip (2.03 MB)
兼容性: Redmine 3.0.*, 3.1.*, 3.2.*, 3.3.*, 3.4.*
文件
redmine_ckeditor-1.1.7.zip (2.24 MB)
没有任何数据可供显示
评论
添加评论
试试 #451 的方法
安装出错
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
NoMethodError: undefined method `assets’ for #<Rails::Application::Configuration:0x0000558ed3a36710>
Did you mean? asset_host
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/railtie/configuration.rb:97:in `method_missing’
/var/lib/gems/2.5.0/gems/rich-1.4.6/lib/rich/engine.rb:10:in `block in <class:Engine>'
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `instance_exec’
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `run’
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in `block in run_initializers’
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in `run_initializers’
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/application.rb:391:in `initialize!'
/opt/redmine/redmine-5.0.2/config/environment.rb:16:in `<top (required)>'
/var/lib/gems/2.5.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require’
/var/lib/gems/2.5.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require’
/var/lib/gems/2.5.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `block in require’
/var/lib/gems/2.5.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in `load_dependency’
/var/lib/gems/2.5.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `require’
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/application.rb:367:in `require_environment!'
/var/lib/gems/2.5.0/gems/railties-6.1.6/lib/rails/application.rb:533:in `block in run_tasks_blocks’
/var/lib/gems/2.5.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP ⇒ redmine:plugins:migrate ⇒ environment
(See full trace by running task with --trace)
在redmine目录下执行下面命令,然后再重新启动redmine试试
你好,由于其他插件需要,我升级了ruby,之后这个插件又无法启动了,报错如下
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
/opt/redmine/redmine-5.0.2/plugins/redmine_ckeditor/init.rb:34: warning: constant Loofah::HTML5::WhiteList is deprecated
rake aborted!
NoMethodError: undefined method `before_filter’ for Rich::FilesController:Class
Did you mean? before_action
/usr/local/rvm/gems/ruby-2.7.0/gems/rich-1.4.6/app/controllers/rich/files_controller.rb:4:in `<class:FilesController>'
/usr/local/rvm/gems/ruby-2.7.0/gems/rich-1.4.6/app/controllers/rich/files_controller.rb:2:in `<module:Rich>'
/usr/local/rvm/gems/ruby-2.7.0/gems/rich-1.4.6/app/controllers/rich/files_controller.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:30:in `require’
/usr/local/rvm/gems/ruby-2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:30:in `require’
/opt/redmine/redmine-5.0.2/plugins/redmine_ckeditor/lib/redmine_ckeditor.rb:136:in `apply_patch’
/opt/redmine/redmine-5.0.2/plugins/redmine_ckeditor/init.rb:12:in `block in <top (required)>'
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:51:in `each’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `instance_exec’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in `run’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:in `block in run_initializers’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:in `run_initializers’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/application.rb:391:in `initialize!'
/opt/redmine/redmine-5.0.2/config/environment.rb:16:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require’
/usr/local/rvm/gems/ruby-2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `block in require’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:299:in `load_dependency’
/usr/local/rvm/gems/ruby-2.7.0/gems/activesupport-6.1.6/lib/active_support/dependencies.rb:332:in `require’
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/application.rb:367:in `require_environment!'
/usr/local/rvm/gems/ruby-2.7.0/gems/railties-6.1.6/lib/rails/application.rb:533:in `block in run_tasks_blocks’
/usr/local/rvm/gems/ruby-2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:22:in `eval’
/usr/local/rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP ⇒ redmine:plugins:migrate ⇒ environment
(See full trace by running task with --trace)
看样子不是ruby版本的问题。像是redmine_ckeditor插件安装不正确,或是插件版本搞错了。建议重新安装下redmine_ckeditor
非常感谢,问题解决了,但是目前这个编辑器不支持剪切板粘贴图片。需要其他插件配合吗?
可以支持从支持剪切板粘贴图片,粘贴时有什么报错信息吗?
没有报错,只不过粘贴后变成附件了,我是想变成图片插入到描述中。
另外,咱们有讨论群吗?
@tong tom @redmineplugins.cn Admin 像是和其它某个已安装的插件出现冲突了。方便列下当前已经安装的插件列表。或者仅保留redmine_ckeditor再贴图试试看。
在'版本更新'页面可以下载,需要积分支持
请问Redmine Ckeditor 1.2.4在哪下载?
redmine_ckeditor 1.2.4可以支持redmine5
这个插件适配时间会长些,可以考虑 redmine_ueditor
请问适配5.0什么时候出来
啥时候出来适配5.0,今天吗
Redmine5的版本还在适配中...
有支持5.0吗
/usr/src/redmine 这个就是你的安装目录,放到这个目录即可
没有htdocs目录
root@redmine1:/usr/src/redmine# ls
CONTRIBUTING.md README.rdoc appveyor.yml config.ru extra log public tmp
Gemfile Rakefile bin db files package.json sqlite vendor
Gemfile.lock app config doc lib plugins test yarn.lock
@n kiven 它那个例子是bitnami的安装环境。结合到你的情况,就是redmine的安装目录
.../redmine/htdocs目录下 没有这个目录
@n kiven 参考 https://redmineplugins.cn/issues/255#note-10 第10楼的方法处理。
Using rails 5.2.6.3
Using kaminari 1.2.2
Using rich 1.4.8 from https://github.com/a-ono/rich.git (at 1.5.2@f5b5b07)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Ensure you have either installed the shared-mime-info package for your distribution, or
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to the location
of that file.
This gem might be installed as a dependency of some bigger package, such as rails, activestorage,
axlsx or cucumber. While most of these packages use the functionality of this gem, some gems have
included this gem by accident. Set USE_FREEDESKTOP_PLACEHOLDER=true if you are certain that you
do not need this gem, and wish to skip the inclusion of freedesktop.org.xml.
The FREEDESKTOP_PLACEHOLDER option is meant as a transitional feature, and will be deprecated in
the next release.
/usr/local/bundle/gems/mimemagic-0.3.10/ext/mimemagic/Rakefile:15:in `locate_mime_database'
/usr/local/bundle/gems/mimemagic-0.3.10/ext/mimemagic/Rakefile:39:in `block in <top (required)>'
/usr/local/bundle/gems/rake-13.0.6/exe/rake:27:in `<main>'
Tasks: TOP => default
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /usr/local/bundle/gems/mimemagic-0.3.10 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10/gem_make.out
*An error occurred while installing mimemagic (0.3.10), and Bundler cannot continue.
Make sure that `gem install mimemagic -v '0.3.10' --source 'https://rubygems.org/'` succeeds before bundling. ** *
In Gemfile:
paperclip was resolved to 6.1.0, which depends on
mimemagic
root@redmine2:/usr/src/redmine# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
*The git source https://github.com/a-ono/rich.git is not yet checked out. Please run `bundle install` before trying to start your application *
@n kiven 确保bundle install正常完成。显示 Fetching https://github.com/a-ono/rich.git 提取失败。github连接不稳定,可以多试几次bundle install @Chen Snowman
启动不了。4.1.7 === puma shutdown: 2022-05-19 07:43:04 +0000 ===
- Goodbye!
Exiting
Your Gemfile lists the gem puma (~> 3.7) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once (per group).
While it’s not a problem now, it could cause errors if you change the version of one of them later.
The git source https://github.com/a-ono/rich.git is not yet checked out. Please
run `bundle install` before trying to start your application
Your Gemfile lists the gem puma (~> 3.7) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once (per group).
While it’s not a problem now, it could cause errors if you change the version of one of them later.
Fetching https://github.com/a-ono/rich.git
error: cannot open FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` in directory /usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea has failed.
If this error persists you could try removing the cache directory '/usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea’error: cannot open FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` in directory /usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea has failed.
If this error persists you could try removing the cache directory '/usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea’error: cannot open FETCH_HEAD: Permission denied
Retrying `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` in directory /usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea has failed.
If this error persists you could try removing the cache directory '/usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea’error: cannot open FETCH_HEAD: Permission denied
Git error: command `git fetch --force --quiet --tags
'https://github.com/a-ono/rich.git’ “refs/heads/*:refs/heads/*” ` in directory
/usr/local/bundle/cache/bundler/git/rich-50774502e3893a04be60fd735c8f2c96bc68acea
has failed.
If this error persists you could try removing the cache directory
'/usr/local/b
@bli bli 安装方法没有区别,都一样的。除非是安装过程报错了,看具体的报错内容是什么...
在redhat as7.9 中怎么安装这个ckeditor.
是ImageMagick包的问题,依赖于你通过什么方式安装的remdine.
看样子像是插件安装异常,bundle install执行过程是否顺利?
無法上傳圖片,
報錯為:
Could not upload your file:
-Rich file Paperclip::Errors::NotldentifiedBylmageMagickError
繁体字是因为,Lang的JS,简体繁体对调了。。。
下载Redmine CKEditor简体中文版 #2
插件安装后工具栏和配置界面为什么都是繁体字?