From f9dd80a98abf88e0d2ce05e30d0a608729d18e60 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Tue, 19 Dec 2023 16:10:27 +0100 Subject: [PATCH] on corrige ckeditor --- src/agenda_culturel/settings/base.py | 6 ++++++ src/agenda_culturel/static/style.scss | 5 +++++ src/agenda_culturel/templates/agenda_culturel/page.html | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/agenda_culturel/settings/base.py b/src/agenda_culturel/settings/base.py index f291eef..18a0edb 100644 --- a/src/agenda_culturel/settings/base.py +++ b/src/agenda_culturel/settings/base.py @@ -61,6 +61,12 @@ MIDDLEWARE = [ "django.middleware.clickjacking.XFrameOptionsMiddleware", ] +CKEDITOR_CONFIGS = { + 'default': { + 'toolbar': 'full', + }, +} + ROOT_URLCONF = "agenda_culturel.urls" TEMPLATES = [ diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index 7855203..9b50554 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -635,4 +635,9 @@ aside nav a.badge { .body-fixed { max-height: 50vh; overflow-y: scroll; +} + +.django-ckeditor-widget a[role="button"]:not([href]) { + opacity: 1; + pointer-events: all; } \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index cf96b98..bba89df 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -85,6 +85,5 @@ {% endif %} - \ No newline at end of file