项目

一般

简介

插件 » Redmine CKEditor 富文本编辑器(简体中文修订版)

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

评论

添加评论

redmineplugins.cn Admin24 天 之前添加

试试 #451 的方法

tong tom25 天 之前添加

安装出错

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)

redmineplugins.cn Admin21 天 之前添加

在redmine目录下执行下面命令,然后再重新启动redmine试试

gem install -l  ./plugins/redmine_ckeditor/lib/craftmine/rich-1.4.8.gem
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

tong tom4 天 之前添加

你好,由于其他插件需要,我升级了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)

guo hongxing4 天 之前添加

我升级了ruby,之后这个插件又无法启动了

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)>'

看样子不是ruby版本的问题。像是redmine_ckeditor插件安装不正确,或是插件版本搞错了。建议重新安装下redmine_ckeditor

tong tom7 天 之前添加

非常感谢,问题解决了,但是目前这个编辑器不支持剪切板粘贴图片。需要其他插件配合吗?

redmineplugins.cn Admin7 天 之前添加

可以支持从支持剪切板粘贴图片,粘贴时有什么报错信息吗?

tong tom4 天 之前添加

没有报错,只不过粘贴后变成附件了,我是想变成图片插入到描述中。
另外,咱们有讨论群吗?

guo hongxing4 天 之前添加

@tong tom @redmineplugins.cn Admin 像是和其它某个已安装的插件出现冲突了。方便列下当前已经安装的插件列表。或者仅保留redmine_ckeditor再贴图试试看。

redmineplugins.cn Admin4 个月 之前添加

在'版本更新'页面可以下载,需要积分支持

yang xiaocong4 个月 之前添加

请问Redmine Ckeditor 1.2.4在哪下载?

redmineplugins.cn Admin4 个月 之前添加

redmine_ckeditor 1.2.4可以支持redmine5

redmineplugins.cn Admin7 个月 之前添加

这个插件适配时间会长些,可以考虑 redmine_ueditor

由 匿名用户 在 7 个月 之前添加

请问适配5.0什么时候出来

忍者 火影8 个月 之前添加

啥时候出来适配5.0,今天吗 smile

redmineplugins.cn Admin8 个月 之前添加

Redmine5的版本还在适配中...

由 匿名用户 在 8 个月 之前添加

有支持5.0吗

guo hongxing9 个月 之前添加

/usr/src/redmine 这个就是你的安装目录,放到这个目录即可

n kiven9 个月 之前添加

没有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

guo hongxing9 个月 之前添加

@n kiven 它那个例子是bitnami的安装环境。结合到你的情况,就是redmine的安装目录

n kiven9 个月 之前添加

.../redmine/htdocs目录下 没有这个目录

guo hongxing9 个月 之前添加

*An error occurred while installing mimemagic (0.3.10), and Bundler cannot continue.

@n kiven 参考 https://redmineplugins.cn/issues/255#note-10 第10楼的方法处理。

n kiven9 个月 之前添加

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.

current directory: /usr/local/bundle/gems/mimemagic-0.3.10/ext/mimemagic                                                                             
/usr/local/bin/ruby -rrubygems /usr/local/bundle/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=/usr/local/bundle/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10
RUBYLIBDIR\=/usr/local/bundle/extensions/x86_64-linux/2.6.0/mimemagic-0.3.10
rake aborted!
Could not find MIME type database in the following locations: ["/usr/local/share/mime/packages/freedesktop.org.xml",
"/opt/homebrew/share/mime/packages/freedesktop.org.xml", "/opt/local/share/mime/packages/freedesktop.org.xml",
"/usr/share/mime/packages/freedesktop.org.xml"]

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 *

由 匿名用户 在 9 个月 之前添加

@n kiven 确保bundle install正常完成。显示 Fetching https://github.com/a-ono/rich.git 提取失败。github连接不稳定,可以多试几次bundle install @Chen Snowman

n kiven9 个月 之前添加

启动不了。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

guo hongxing9 个月 之前添加

@bli bli 安装方法没有区别,都一样的。除非是安装过程报错了,看具体的报错内容是什么...

bli bli9 个月 之前添加

在redhat as7.9 中怎么安装这个ckeditor.

zhang yi大约 2 年 之前添加

是ImageMagick包的问题,依赖于你通过什么方式安装的remdine.

redmineplugins.cn Admin超过 2 年 之前添加

看样子像是插件安装异常,bundle install执行过程是否顺利?

Wu Joke超过 2 年 之前添加

無法上傳圖片,
報錯為:
Could not upload your file:
-Rich file Paperclip::Errors::NotldentifiedBylmageMagickError

由 匿名用户 在 超过 2 年 之前添加

繁体字是因为,Lang的JS,简体繁体对调了。。。

redmineplugins.cn Admin超过 3 年 之前添加

下载Redmine CKEditor简体中文版 #2

由 匿名用户 在 超过 3 年 之前添加

插件安装后工具栏和配置界面为什么都是繁体字?