diff --git a/CHANGES.rst b/CHANGES.rst index fb984587ab..02ed3fc12d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,9 @@ Incompatibilities: New: +- 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)