From e20b6264742f761e7a9f20c717a1ceacef6164ca Mon Sep 17 00:00:00 2001 From: Jens-Erik Weber Date: Mon, 23 Oct 2023 23:21:11 +0200 Subject: [PATCH] Remove Flash plugin in the default settings (#656) Co-authored-by: Jens-Erik Weber --- djangocms_text_ckeditor/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/djangocms_text_ckeditor/settings.py b/djangocms_text_ckeditor/settings.py index 5bf3ec4d5..0062324cb 100644 --- a/djangocms_text_ckeditor/settings.py +++ b/djangocms_text_ckeditor/settings.py @@ -1,3 +1,5 @@ +from typing import Dict, List, Union + from django.conf import settings from django.templatetags.static import static from django.utils.translation import gettext_lazy as _ @@ -6,12 +8,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', {}), }