Du visar hjälpinnehåll för version:


A Rich Text Editor (RTE) provides the ability to enter text with markup.  

For Communities components, while similar to the rich text editor in the author environment, it affects text entered in the publish environment.


Enabling Rich Text Editor

Communities components that allow user generated content (UGC) can be enabled to allow RTE.  Depending on whether the component was added to a page or included within a function, RTE may or may not be enabled by default.

If not enabled, simply enter author edit mode, select the component for edit, and select the Rich Text Editor checkbox.

RTE is available for the following Communities components:


Customization of the rich text editor is possible as the implementation is based on CKEditor.

The current configuration for Communities components is in the cq.social.scf clientlib, located in the repository at


Modifying the cq.social.scf clientlib is not recommended as future upgrades may override any edits.

Due to security concerns, the hyperlink options are not included in the set of rich text icons presented to members by default.  The ability for mischief is extensive when hrefs are allowed in UGC.

To add the hyperlink options to the toolbar :

  • add a toolbar named "links"
    • { name: 'links', items : [ 'Link','Unlink','Anchor' ] }
  • select Save All


CKRte.prototype.config = {
    toolbar: [
        { name: "basicstyles",
           items: ["Bold", "Italic", "Underline", "NumberedList", "BulletedList", "Outdent", "Indent", "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock", "TextColor"]
        { name: 'links', 
           items : [ 'Link','Unlink','Anchor' ] 
    autoParagraph: false,
    autoUpdateElement: false,
    removePlugins: "elementspath",
    resize_enabled: false

Denna produkt är licensierad enligt en Creative Commons Erkännande-Ickekommersiell-Dela Lika 3.0 Unported-licens  Twitter™- och Facebook-inlägg omfattas inte av villkoren i Creative Commons-licensen.

Juridiska meddelanden   |   Onlinesekretesspolicy