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
{{ message }}
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
Changelog
2
2
=========
3
3
4
+
Next version
5
+
------------
6
+
#. Fix storage problems by setting ``CKEDITOR_BASEPATH`` (hopefully for real
7
+
this time)
8
+
#. Documentation updates
9
+
#. Added a ``CKEDITOR_RESTRICT_BY_DATE`` setting to add uploaded files into
10
+
folders containing the current date.
11
+
#. Added a ``CKEDITOR_FILEICONS`` setting that allows overriding the
12
+
icons used by Gallerific.
13
+
#. Added a ``CKEDITOR_FILENAME_GENERATOR`` setting which allows
14
+
specifying a callable which mangles the filename of uploaded files.
15
+
#. Added ``THUMBNAIL_SIZE`` and ``IMAGE_QUALITY`` settings for the
16
+
Pillow image backend.
17
+
#. Actually include static assets for ``ckeditor_uploader`` in the
18
+
pip-installable package.
19
+
4
20
5.2.2
5
21
-----
6
22
#. Django 1.11 support
@@ -59,8 +75,8 @@ Changelog
59
75
File upload support have been moved to ckeditor_uploader. The urls are in ckeditor_uploader.urls while for file uploading widget you have to use RichTextUploadingField from ckeditor_uploader.fields instead of RichTextField from from ckeditor.fields.
60
76
61
77
#. Updated ckeditor to 4.5.3 (from https://github.com/ckeditor/ckeditor-dev/tree/4.5.3)
#. Add `zip_safe=False` on setup config, to force does not create ".egg" file
64
80
#. Add python Wheel package configuration
65
81
#. Add setup.py functions to easy release ".egg" package and Wheel package, and tag version on git ( ``python setup.py publish`` and ``python setup.py tag`` )
66
82
#. Improved Tox configuration to code coverage check, code quality check (flake8), imports order check (isort) and test with django master branch
Copy file name to clipboardExpand all lines: README.rst
+49-21Lines changed: 49 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,14 @@ File upload support has been moved to ckeditor_uploader. The urls are in ckedit
10
10
**Django admin CKEditor integration.**
11
11
Provides a ``RichTextField``, ``RichTextUploadingField``, ``CKEditorWidget`` and ``CKEditorUploadingWidget`` utilizing CKEditor with image uploading and browsing support included.
12
12
13
-
* This version also includes:
13
+
This version also includes:
14
+
14
15
#. support to django-storages (works with S3)
15
16
#. updated ckeditor to version 4.6.1
16
17
#. included all ckeditor language and plugin files to made everyone happy! ( `only the plugins maintained by the ckeditor develops team <https://github.com/ckeditor/ckeditor-dev/tree/4.6.1/plugins>`_ )
17
18
18
19
.. contents:: Contents
19
-
:depth: 5
20
+
:depth: 5
20
21
21
22
Installation
22
23
------------
@@ -72,11 +73,35 @@ Required for using widget with file upload
#. Note that by adding those URLs you add views that can upload and browse through uploaded images. Since django-ckeditor 4.4.6, those views are staff_member_required. If you want a different permission decorator (login_required, user_passes_test etc.) then add views defined in `ckeditor.urls` manually to your urls.py.
76
+
#. Note that by adding those URLs you add views that can upload and browse through uploaded images. Since django-ckeditor 4.4.6, those views are decorated using ``@staff_member_required``. If you want a different permission decorator (``login_required``, ``user_passes_test`` etc.) then add views defined in ``ckeditor.urls`` manually to your urls.py.
76
77
77
78
#. Set ``CKEDITOR_IMAGE_BACKEND`` to one of the supported backends to enable thumbnails in ckeditor gallery. By default no thumbnails are created and full size images are used as preview. Supported backends:
78
79
79
-
- ``pillow``: uses PIL or Pillow
80
+
- ``pillow``: Uses Pillow
81
+
82
+
#. django-ckeditor uses Django admin's jQuery by default. You may override this
83
+
by specifying a different jQuery as ``CKEDITOR_JQUERY_URL``. If you find
84
+
that CKEditor widgets don't appear in your Django admin site then check that
@@ -238,13 +263,15 @@ The image/file upload feature is done by the `uploadimage` plugin.
238
263
239
264
Restricting file upload
240
265
-----------------------
266
+
241
267
#. To restrict upload functionality to image files only, add ``CKEDITOR_ALLOW_NONIMAGE_FILES = False`` in your settings.py file. Currently non-image files are allowed by default.
242
268
243
269
#. By default the upload and browse URLs use staff_member_required decorator - ckeditor_uploader/urls.py - if you want other decorators just insert two urls found in that urls.py and don't include it.
244
270
245
271
246
272
Demo / Test application
247
273
-----------------------
274
+
248
275
If you clone the repository you will be able to run the ``ckeditor_demo`` application.
@@ -262,6 +289,7 @@ Database is set to sqlite3 and STATIC/MEDIA_ROOT to folders in temporary directo
262
289
263
290
Running selenium test
264
291
---------------------
292
+
265
293
You can run the test with ``python manage.py test ckeditor_demo`` (for repo checkout only) or with ``tox`` which is configured to run with Python 2.7 and 3.4.
266
294
267
295
@@ -285,6 +313,7 @@ More on https://docs.djangoproject.com/en/1.11/ref/clickjacking/#setting-x-frame
285
313
286
314
Example ckeditor configuration
287
315
------------------------------
316
+
288
317
::
289
318
290
319
CKEDITOR_CONFIGS = {
@@ -333,22 +362,21 @@ Example ckeditor configuration
0 commit comments