From 9a6dee08f88bde68d5ae9403942c5a7eedfb5587 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Tue, 31 May 2016 22:05:25 +0200 Subject: [PATCH] Allow to define multiple ``tinymce-content-css`` in theme ``manifest.cfg`` files, seperated by a comma. Like above. (#1598) --- CHANGES.rst | 2 ++ Products/CMFPlone/patterns/tinymce.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 5582ee9716..646f04ff9a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,8 @@ New: - Add link to training.plone.org [svx] +- Allow to define multiple ``tinymce-content-css`` in theme ``manifest.cfg`` files, seperated by a comma. + [thet] - Update npm package depencies. [thet] diff --git a/Products/CMFPlone/patterns/tinymce.py b/Products/CMFPlone/patterns/tinymce.py index 64e0d9084a..1a05ed31dc 100644 --- a/Products/CMFPlone/patterns/tinymce.py +++ b/Products/CMFPlone/patterns/tinymce.py @@ -42,7 +42,10 @@ def get_content_css(self, style_css=''): theme = self.get_theme() tinymce_content_css = getattr(theme, 'tinymce_content_css', None) if tinymce_content_css is not None: - files.append(self.nav_root_url + theme.tinymce_content_css) + files.extend([ + self.nav_root_url + _ + for _ in theme.tinymce_content_css.split(',') + ]) return ','.join(files)