Forum

Thread tagged as: Question, Problem, CKEditor

Problem with custom Object Styles in the CKEditor settings

HI there,

I am trying to customise the styles in the latest CK Editor using the code below. All off the inline/block styles show up fine however the object styles don't show.

I tried the example code on the CK Editor site example and again inline/block showed up but not the object styles.

Is there a setting in the Perch integration that turns this off?

CKEDITOR.stylesSet.add( 'my_styles', [
    { name: 'message', element: 'p', attributes: { 'class': 'message' } },
    { name: 'boxout', element: 'p', attributes: { 'class': 'boxout' } },
    { name: 'clear', element: 'p', attributes: { 'class': 'clear' } },
    { name: 'button', element: 'a', attributes: { 'class': 'inline-button' } },
    { name: 'leftcolumn', element: 'ul', attributes: {'class': 'list-left'}},
    { name: 'rightcolumn', element: 'ul', attributes: {'class': 'list-right'} },
    { name: 'imageright', element: 'img', attributes: { 'class': 'image-right'} },
    { name: 'imageleft', element: 'img', attributes: {'class': 'image-left'} }
]);
Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, everything is in the configuration file there.

I'll maybe need to try stack overflow to see if it is a CK editor issue.