From afdf25d40a5a6589454614ac2f1418949c5dd0ca Mon Sep 17 00:00:00 2001 From: Fabian Braun Date: Sun, 19 Nov 2023 17:43:17 +0100 Subject: [PATCH] Allow for request-free context objects for testing purposes --- djangocms_text_ckeditor/cms_plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_text_ckeditor/cms_plugins.py b/djangocms_text_ckeditor/cms_plugins.py index 2d0bc5cbc..cba798eb5 100644 --- a/djangocms_text_ckeditor/cms_plugins.py +++ b/djangocms_text_ckeditor/cms_plugins.py @@ -551,7 +551,7 @@ def inline_editing_active(self, request): ) def render(self, context, instance, placeholder): - if self.inline_editing_active(context["request"]): + if self.inline_editing_active(context.get("request")): ckeditor_settings = self.get_editor_widget( context["request"], self.get_plugins(instance), instance ).get_ckeditor_settings(get_language().split("-")[0])