如何使用 Django-WYSIWYG 安装 CKEditor
我正在尝试安装 CKEditor 以与 Django-WYSIWYG 一起使用。事实证明,这是异常困难的。
正如 Django-WYSIWYG 网站上提到的,可以通过将分发文件拖放到系统上的 MEDIA_URL 文件夹中来“安装”CKEditor。
此外,你还必须在设置中设置一个变量,它决定了 Django-WYSIWYG 的“风格”。
这两件事我都做过。我没有收到任何错误,但它仍然想使用 YUI。我对 YUI 非常不满意,更喜欢 CKEditor,但由于某种原因它无法安装。
如果我遗漏了一个步骤,或者如果您以某种方式完成了此操作,请告诉我!
抱歉,这可能是一个显而易见的问题。
I am trying to install the CKEditor for use with Django-WYSIWYG. This is proving to be oddly difficult.
As mentioned on the site for Django-WYSIWYG, it is possible to "install" CKEditor by dropping the distribution file in the MEDIA_URL folder on one's system.
In addition, you've got to set a variable in settings, which determines Django-WYSIWYG's "flavor."
I've done both of these things. I get no errors, but the thing still wants to use YUI. I'm really dissatisfied with YUI and would much prefer CKEditor, but for some reason it won't install.
If I am missing a step, or if you have done this somehow, please let me know!
Sorry for what is probably an obvious question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
https://github.com/shaunsephton/django-ckeditor 你可以使用它。
https://github.com/shaunsephton/django-ckeditor u can use it.
我能够让它发挥作用。您可能没有在设置文件中正确设置 URL。对于 Django 1.3,ckeditor 文件放置在 static 中。
I was able to get this to work. It is likely that you are not setting the URL correctly in your settings file. For Django 1.3, the ckeditor files are placed in static.