Skip to content

Commit

Permalink
Remove Flash plugin in the default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens-Erik Weber authored and Jens-Erik Weber committed Oct 20, 2023
1 parent 898eb21 commit 4c645ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion djangocms_text_ckeditor/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Union
from django.conf import settings
from django.templatetags.static import static
from django.utils.translation import gettext_lazy as _
Expand All @@ -6,12 +7,13 @@
# See http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
# for all settings

CKEDITOR_SETTINGS = {
CKEDITOR_SETTINGS: dict[str, Union[str, list]] = {
'language': '{{ language }}',
'toolbar': 'CMS',
'skin': 'moono-lisa',
'baseFloatZIndex': 10000000,
'toolbarCanCollapse': False,
'removePlugins': ['flash'],
**getattr(settings, 'CKEDITOR_SETTINGS', {}),
}

Expand Down

0 comments on commit 4c645ec

Please sign in to comment.