From 4c645ecf9f3bf20aa344ce775a4305ef91af911c Mon Sep 17 00:00:00 2001 From: Jens-Erik Weber Date: Fri, 20 Oct 2023 13:06:30 +0200 Subject: [PATCH] Remove Flash plugin in the default settings --- djangocms_text_ckeditor/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/djangocms_text_ckeditor/settings.py b/djangocms_text_ckeditor/settings.py index 5bf3ec4d5..1eafc5a0d 100644 --- a/djangocms_text_ckeditor/settings.py +++ b/djangocms_text_ckeditor/settings.py @@ -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 _ @@ -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', {}), }