Skip to content

Commit c1d7d05

Browse files
author
Shaun Sephton
committed
added browsing
1 parent fc14c9a commit c1d7d05

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@ Django CKEditor:
22
================
33
**Django admin CKEditor integration.**
44

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.
66

77

88
Installation:
99
------------
1010

1111
#. Install or add django-ckeditor to your python path.
1212

13+
#. Add ``ckeditor`` to your INSTALLED_APPS setting.
14+
1315
#. Copy the ``media/ckeditor`` directory into any directory within your media root. You can override the location in your settings (see below).
1416

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/"
1820

1921
#. 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.::
2022

@@ -57,8 +59,3 @@ Alernatively you can use the included ``CKEditorWidget`` as the widget for a for
5759
form = PostAdminForm
5860
5961
admin.site.register(Post, PostAdmin)
60-
61-
62-
TODO:
63-
-----
64-
#. Add filebrowser support.

0 commit comments

Comments
 (0)