python中的CKEditor文件管理器

CKEditor filemanager in python

本文关键字:文件管理器 CKEditor 中的 python      更新时间:2023-09-26

我正在使用flask(一个小型python框架)创建一个应用程序,并尝试集成CKEditor和filemanager(https://github.com/simogeo/Filemanager)但我做不到。

我遵循了自述文件,将filemanager.config.js更改为python语言,将url添加到了ckeditor config中,但什么都没有(没有新按钮,没有浏览或上传)。

    filemanager: filemanager.config.js
    "options": {
        "culture": "en",
        "lang": "python",
        (...)

ckeditor: config.js
    config.filebrowserBrowseUrl: 'http://localhost:5000/static/js/filemanager/index.html'
    config.filebrowserImageBrowseUrl = 'http://localhost:5000/static/js/filemanager/index.html?type=Images&currentFolder=/Image/';
    config.filebrowserFlashBrowseUrl = 'http://localhost:5000/static/js/filemanager/index.html?type=Flash&currentFolder=/Flash/';
    config.filebrowserUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Files&currentFolder=/File/';
    config.filebrowserImageUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Images&currentFolder=/Image/';
    config.filebrowserFlashUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Flash&currentFolder=/Flash/';

我真的需要能够在ckeditor/python中浏览和上传文件。有人能帮帮我吗。

感谢

我是您上面提到的主要文件管理器。正如自述文件中所说,"由于最近进行了许多更改,现在只有PHP和MVC连接器可用"。

0.8版可能适用于Python。(我甚至不确定)。

如果这里有人想调整现有的python连接器以支持FM上一个版本,这对所有python社区来说都是非常好的。