Redmine和ckeditor uploadimage插件

时间:2017-11-06 21:25:32

标签: plugins ckeditor redmine

在使用CK编辑器插件的Redmine 3.4.3上,我们无法使这个uploadimage ckeditor插件工作。

我们应该把uploadimage文件夹放在哪里?在\ plugins \ redmine_ckeditor \ assets \ ckeditor-contrib \ plugins文件夹中?但是当我这样做(并重新启动apache)时,ckeditor图标都消失了!

根据https://github.com/a-ono/redmine_ckeditor/issues/216,它可能甚至比那复杂得多!

请你检查一下我做错了什么:

1-从https://ckeditor.com/cke4/addon/uploadimage下载uploadimage ckeditor插件(此插件中只有一个文件plugin.js !!)

2-解压缩\ plugins \ redmine_ckeditor \ assets \ ckeditor-contrib \ plugins文件夹中的uploadimage文件夹

3-重启apache

想念什么?我应该编辑哪个config.js文件?我应该在那里写什么?我应该安装CKFinder吗?

感谢

西里尔

1 个答案:

答案 0 :(得分:1)

我在Debian Stretch Linux上进行了测试并得到了同样的错误。

然而,apache错误文件显示:

age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/share/redmine: An error occurred while starting up the preloader.
  Error ID: 778fb98c
  Error details saved to: /tmp/passenger-error-wXVYHK.html
  Message from application: Could not create directory /usr/share/redmine/instances/default/public/plugin_assets/redmine_ckeditor/ckeditor-contrib/plugins/uploadimage: Permission denied @ dir_s_mkdir - /usr/share/redmine/instances/default/public/plugin_assets/redmine_ckeditor/ckeditor-contrib/plugins/uploadimage (RuntimeError)

然后通过以下命令给出正确的权限后,插件工作正常:

chown -R www-data:www-data /usr/share/redmine/instances/default/public/plugin_assets/*