Child pages
  • [cms] Allow specifying CKEditor styleSet in "st:ContentBlock" tag [5.3.0-B1]
Skip to end of metadata
Go to start of metadata

In In-Portal we're using CKEditor for WYSIWYG editing. One of the features in CKEditor is called "stylesets" (see more at http://docs.ckeditor.com/#!/guide/dev_styles). It allows to create reusable styles, that later can be applied from dropdown right inside CKEditor.

Related styles then can be grouped together to form a styleset. The stylesets are defined in "styles.js" file, that looks like this:

CKEDITOR.stylesSet.add( 'my_styles', [
    // Block-level styles
    { name: 'Blue Title', element: 'h2', styles: { 'color': 'Blue' } },
    { name: 'Red Title' , element: 'h3', styles: { 'color': 'Red' } },

    // Inline styles
    { name: 'CSS Style', element: 'span', attributes: { 'class': 'my_style' } },
    { name: 'Marker: Yellow', element: 'span', styles: { 'background-color': 'Yellow' } }
] );

Proposing to make styleset name configurable for the "FCKEditor" tag, that is used to create CKEditors on the page.

Solution

  1. change "fckFCKHelper::prepareConfig" method to support overriding styleset name via "styleset_name" parameter (right now it's hardcoded to "portal")

Related Tasks

INP-1539 - Getting issue details... STATUS

1 Comment

  1. Sponsored by rPLS22685.