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

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • 0.5
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: