Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9610

Default value of CKEditor property 'contentCss' should be an array to allow easier styling additions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
    • Similar issues:
    • Story Points:
      0.5
    • Sprint:
      Tiger Sprint 115, Tiger Sprint 116

      Description

      The CKEditor configuration has a property 'contentsCss' that can contain one or more CSS files to include in a CKEditor field. The default CKEditor configuration uses this property to include the file 'ckeditor/hippocontents.css' with the default styling. Users can add their own styles by overriding this property and adding their own style sheet [1].

      This contentsCss property can be a string with one stylesheet, or an array with multiple stylesheets. Because the default value of contentsCss (in CKEditorNodePlugin.java and CKEditorPropertyPlugin.java) is a string, users always have to override it in ckeditor.config.overlayed.json. That forces them to 'repeat' the hippocontents.css style definition, otherwise the default styling is gone.

      It would be nicer if the default contentsCss property value was an array with one element. Users can then add their own additional stylesheet to ckeditor.config.appended.json without having to repeat the default stylesheet.

      [1] http://www.onehippo.org/library/concepts/document-types/html-fields/customize-ckeditor-css.html

        Attachments

          Activity

            People

            • Assignee:
              pgupta Pankaj Gupta (Inactive)
              Reporter:
              mdenburger Mathijs den Burger (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: