Python中的CKEditor文件管理器
我正在用Flask(一个小型的Python框架)创建一个应用程序,想要把CKEditor和文件管理器(https://github.com/simogeo/Filemanager)整合在一起,但我一直没能成功。
我按照说明文档做了,修改了filemanager.config.js文件为Python语言,添加了CKEditor配置中的网址,但什么都没发生(没有新按钮,也没有浏览或上传的功能)。
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¤tFolder=/Image/';
config.filebrowserFlashBrowseUrl = 'http://localhost:5000/static/js/filemanager/index.html?type=Flash¤tFolder=/Flash/';
config.filebrowserUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Files¤tFolder=/File/';
config.filebrowserImageUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Images¤tFolder=/Image/';
config.filebrowserFlashUploadUrl = 'http://localhost:5000/static/js/filemanager/connectors/php/filemanager.cfm?mode=add&type=Flash¤tFolder=/Flash/';
我真的需要在CKEditor/Python中能够浏览和上传文件。有人能帮帮我吗?
谢谢
1 个回答
0
我是你提到的主要文件管理器。正如说明文件中所说的,"由于最近进行了很多更改,现在只提供PHP和MVC连接器"。
版本0.8可能可以与Python一起使用。(我也不太确定)。
如果这里有人想把现有的Python连接器调整一下,以支持文件管理器的最新版本,那对整个Python社区来说将是件好事。