如何使用Django-WYSIWYG安装CKEditor

时间:2023-01-12 18:38:02

I am trying to install the CKEditor for use with Django-WYSIWYG. This is proving to be oddly difficult.

我正在尝试安装CKEditor以与Django-WYSIWYG一起使用。这被证明是非常困难的。

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.

正如Django-WYSIWYG网站上所提到的,可以通过将分发文件放在一个系统上的MEDIA_URL文件夹中来“安装”CKEditor。

In addition, you've got to set a variable in settings, which determines Django-WYSIWYG's "flavor."

此外,你必须在设置中设置一个变量,这决定了Django-WYSIWYG的“味道”。

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.

我做过这两件事。我没有错误,但事情仍然想使用YUI。我真的不喜欢YUI而且更喜欢CKEditor,但由于某种原因它不会安装。

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.

对不起,这可能是一个显而易见的问题。

2 个解决方案

#1


1  

https://github.com/shaunsephton/django-ckeditor u can use it.

https://github.com/shaunsephton/django-ckeditor你可以使用它。

#2


0  

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.

我能够让这个工作。您可能没有在设置文件中正确设置URL。对于Django 1.3,ckeditor文件放在静态。

#1


1  

https://github.com/shaunsephton/django-ckeditor u can use it.

https://github.com/shaunsephton/django-ckeditor你可以使用它。

#2


0  

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.

我能够让这个工作。您可能没有在设置文件中正确设置URL。对于Django 1.3,ckeditor文件放在静态。