Django-CKEditor图片上传 [英] Django-CKEditor Image Upload
问题描述
我目前已经安装了Django-CKEditor并拥有自己的自定义工具栏。
I've currently installed Django-CKEditor and have my own custom toolbar.
我正在努力寻找如何启用图片上传功能。单击图像按钮时,我只能通过URL上传。我知道,在插件中,有一些视图可以处理文件的浏览和上传,但是我不确定如何激活或使用它们。
I'm struggling to find how to enable image uploading. When clicking the Image button, I can only upload via URL. I know that, in the plugin, there are views to handle file browsing and uploading but I'm not sure how to activate or use these.
上有稀疏的文档
https://github.com/shaunsephton/django-ckeditor
推荐答案
正如我在问题中提到的-Django CKEditor带有许多URL,用于处理图像的查看和浏览。使用编辑器激活此文件的后续步骤要求您在激活编辑器并将其设置为相应的/ upload /和/ browse / URL时添加一个filebrowserBrowseUrl。
As I had mentioned in my question - Django CKEditor comes with a number of URLs to handle the viewing and browsing of images. The subsequent steps to activate this with your editor require you to add a filebrowserBrowseUrl when activating the editor and setting it to the appropriate /upload/ and /browse/ URLs.
请参见此处更多:
http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/
这篇关于Django-CKEditor图片上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!