I'm working with Django. To integrate a Rich Text Editor with my site, I use the django-CKEditor from https://github.com/django-ckeditor/django-ckeditor
我正在使用Django。要将富文本编辑器与我的站点集成,我使用来自https://github.com/django-ckeditor/django-ckeditor的django-CKEditor
While it works quite fine in the Admin Panel, I'd like to use it in frontend forms to allow the users of my website to edit their own texts via CKEditor. But I can not figure it out...
虽然它在管理面板中工作得很好,但我想在前端表单中使用它,以允许我的网站用户通过CKEditor编辑自己的文本。但我无法弄清楚......
Is it true that this django-ckeditor can only be used in Admin Panel? If it isn't true, how to make it available in the frontend? Or any recommendation for other Rich Text Editor which I can use at the frontend?
这个django-ckeditor只能在管理面板中使用吗?如果不是这样,如何在前端提供它?或者我可以在前端使用的其他富文本编辑器的推荐?
Thanks a lot!!!
非常感谢!!!
1 个解决方案
#1
1
I just include ckeditor
in static/js and apply it to whichever fields I need.
我只是在static / js中包含ckeditor并将其应用于我需要的任何字段。
I initially tried what you are trying, and this (more conventional) way was super easy.
我最初尝试过你正在尝试的东西,这种(更传统的)方式非常容易。
http://ckeditor.com/download
#1
1
I just include ckeditor
in static/js and apply it to whichever fields I need.
我只是在static / js中包含ckeditor并将其应用于我需要的任何字段。
I initially tried what you are trying, and this (more conventional) way was super easy.
我最初尝试过你正在尝试的东西,这种(更传统的)方式非常容易。
http://ckeditor.com/download