Skip to content

Commit

Permalink
fix: Add missing styles for add/edit plugin dialog (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Nov 1, 2024
1 parent a028e0f commit 4543500
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion djangocms_text/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def media(self):
"all": (
"djangocms_text/css/cms.text.css",
*rte_config.css.get("all", ()),
),
) if self.inline_editing else ("djangocms_text/css/cms.text.css",),
},
js=(
static("djangocms_text/bundles/bundle.editor.min.js"),
Expand Down Expand Up @@ -95,3 +95,9 @@ def get_full_path_with_param(self, key, value):

if settings.TEXT_INLINE_EDITING and rte_config.inline_editing: # Only register if explicitly required from settings
toolbar_pool.register(InlineEditingToolbar)
else:
@toolbar_pool.register
class TextToolbar(CMSToolbar):
class Media:
# Needed for the text-editor modal to work
css = {"all": ("djangocms_text/css/cms.text.css",)}

0 comments on commit 4543500

Please sign in to comment.