ckfinder - 将 Ckfinder 与 Serenity 平台集成
问题描述
我尝试整合CKfinder。我按照问题 #4994中的步骤进行操作,但最后出现如下错误。我需要改变什么?
namespace PM.Common {
@Serenity.Decorators.registerEditor()
export class MyHtmlContentEditor extends Serenity.HtmlContentEditor {
constructor(textArea: JQuery, opt?: Serenity.HtmlContentEditorOptions) {
super(textArea, opt);
}
protected getConfig(): Serenity.CKEditorConfig {
var config:any = super.getConfig();
config.uiColor = '#AADC6E';
config.allowedContent = true;
config.autoParagraph = false;
config.filebrowserBrowseUrl = '/Scripts/ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/Scripts/ckfinder/ckfinder.html?type=Images';
config.filebrowserUploadUrl = '/Scripts/ckfinder/connector?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = '/Scripts/ckfinder/connector?command=QuickUpload&type=Images';
return config;
}
}
}
解决方案
我没有在我的项目中使用 ckfinder,但我猜你错过了,也需要添加一些配置。检查 ckeditor 文档。https://ckeditor.com/docs/ckfinder/ckfinder3-net/integration.html
文档也取决于您使用的版本。
推荐阅读
- python - 在python中动态更改行值
- r - 通过行/列名在第三维上连接数据框
- python - 如何从我的输出结果中删除括号“[]”和逗号?
- javascript - 没有为元素定义 Aurelia API:
- c++ - 使用参考时的奇怪行为
- python - Python - 在同一天遍历前一周
- android - Android - 回到以前的应用程序会发出奇怪的信息
- jquery - Ajax 请求不适用于数据表分页
- node.js - 注销方法需要一个数据库名称作为第一个参数(Mongo 的 Node.js 驱动程序)
- javascript - 使用 jQuery 选择目标没有后缀的所有链接