【问题标题】:Intergrate Ckfinder with serenity platform将 Ckfinder 与 Serenity 平台集成
【发布时间】:2020-11-24 01:20:11
【问题描述】:

我尝试集成 CKfinder。我按照Issue #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;
    }
}

}

Error Message

【问题讨论】:

    标签: ckfinder serenity-platform


    【解决方案1】:

    我没有在我的项目中使用 ckfinder,但我猜你错过了,也需要添加一些配置。 检查 ckeditor 文档。 https://ckeditor.com/docs/ckfinder/ckfinder3-net/integration.html

    文档也取决于您使用的版本。

    【讨论】:

    • 我已按照说明进行操作,但没有成功
    • 你检查过 ckeditor 文档吗?它显示了如何覆盖连接器 url
    猜你喜欢
    • 2016-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多