-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Silence the CKEditor version check/nag but include a system check war…
…ning of our own Fixes #761.
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from django.apps import AppConfig | ||
from django.core.checks import Warning, register | ||
|
||
|
||
def check_ckeditor_version(app_configs, **kwargs): | ||
return [ | ||
Warning( | ||
"django-ckeditor bundles CKEditor 4.22.1 which isn't supported anmyore and which does have unfixed security issues, see for example https://ckeditor.com/cke4/release/CKEditor-4.24.0-LTS . You should consider strongly switching to a different editor (maybe CKEditor 5 respectively django-ckeditor-5 after checking whether the CKEditor 5 license terms work for you) or switch to the non-free CKEditor 4 LTS package. See https://ckeditor.com/ckeditor-4-support/ for more on this. (Note! This notice has been added by the django-ckeditor developers and we are not affiliated with CKSource and were not included in the licensing change, so please refrain from complaining to us. Thanks.)", | ||
id="ckeditor.W001", | ||
) | ||
] | ||
|
||
|
||
class CKEditorConfig(AppConfig): | ||
default_auto_field = "django.db.models.AutoField" | ||
name = "ckeditor" | ||
|
||
def ready(self): | ||
register(check_ckeditor_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters