redmine ckfinder - modric2jeff/archive GitHub Wiki

1、搭建spring+ckfinder程序


enabled: true # Change this value to "true" to enable the application

licenseName: ~
licenseKey: ~
roleSessionAttribute: 'CKFinder_UserRole'
serveStaticResources: true
checkSizeAfterScaling: true
secureImageUploads: true
csrfProtection: false

extraHeaders:
  'Access-Control-Allow-Origin': '*'
  'Access-Control-Allow-Credentials': 'true'

2、安装ckeditor4.7的相关插件

3、配置plugins\redmine_ckeditor\assets\ckeditor\config.js


config.uploadUrl = 'http://localhost:8080/ckfinder/connector?command=QuickUpload&type=Images&responseType=json';
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html';   
config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?type=Images';   
config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?type=Flash';   

4、安装ckfinder.js 和config.js同级

5、替换plugins\redmine_ckeditor\lib\redmine_ckeditor\wiki_formatting\helper.rb