You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,21 @@ Django CKEditor:
2
2
================
3
3
**Django admin CKEditor integration.**
4
4
5
-
Provides a ``RichTextField`` and ``CKEditorWidget`` with the widget supporting image uploads.
5
+
Provides a ``RichTextField`` and ``CKEditorWidget`` with the widget supporting image uploads and browsing.
6
6
7
7
8
8
Installation:
9
9
------------
10
10
11
11
#. Install or add django-ckeditor to your python path.
12
12
13
+
#. Add ``ckeditor`` to your INSTALLED_APPS setting.
14
+
13
15
#. Copy the ``media/ckeditor`` directory into any directory within your media root. You can override the location in your settings (see below).
14
16
15
-
#. Add a CKEDITOR_JS_URL setting to the project's ``settings.py`` file. This setting specifies the URL to the CKEditor Javascript include (ckeditor.js), i.e::
16
-
17
-
CKEDITOR_JS_URL = "/media/ckeditor/ckeditor.js"
17
+
#. Add a CKEDITOR_MEDIA_PREFIX setting to the project's ``settings.py`` file. This setting specifies a URL prefix to the ckeditor media. Make sure to use a trailing slash::
18
+
19
+
CKEDITOR_MEDIA_PREFIX = "/media/ckeditor/"
18
20
19
21
#. Add a CKEDITOR_UPLOAD_PATH setting to the project's ``settings.py`` file. This setting specifies an absolute path to your ckeditor image upload directory. Make sure you have write permissions for the path, i.e.::
20
22
@@ -57,8 +59,3 @@ Alernatively you can use the included ``CKEditorWidget`` as the widget for a for
0 commit comments