【问题标题】:using ckeditor in sailsjs but filebrowser is not working在sailsjs中使用ckeditor但文件浏览器不起作用
【发布时间】:2016-04-06 09:52:26
【问题描述】:

我在sailsjs 中使用ckeditor 最新版本和完整包。我正在使用服务器功能的文件浏览。

//ckeditor/config.js

CKEDITOR.editorConfig = function( config ) {
    config.filebrowserBrowseUrl = '/files';
};

assets/files 文件夹中有很多图片。当我点击浏览服务器时,会打开一个新标签,网址为 http://example.com/files?CKEditor=ck&CKEditorFuncNum=1&langCode=en

但我得到默认的未找到屏幕。但是,如果我从像http://example.com/files/ok.png 这样的网址访问图像。我可以在浏览器中看到它。但如果我要求 http://example.com/files 。我需要查看文件夹中的图像列表。我需要的是以下或文件浏览器。

【问题讨论】:

    标签: ckeditor sails.js ckfinder


    【解决方案1】:

    您提供的屏幕显示CKFinder 文件管理器,可以轻松与CKEditor 集成。 CKFinder 工作需要一个服务器端连接器 - 不幸的是,目前还没有用于 node.js 的连接器。

    您可能会发现 CKEditor File Browser API 很有帮助,因为它允许集成任何其他文件浏览器。有关sails.js 中的基本用法,请参阅this answer

    【讨论】:

    • 我已经检查过了。底线是我必须使用sails.js 编写一个文件管理器,然后必须遵循docs.ckeditor.com/#!/guide/…。顺便说一句,感谢您的回答。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-03-09
    • 2020-09-28
    • 1970-01-01
    • 2017-12-04
    • 2015-09-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多