Content blocks within stacks: Cannot apply styles in CKEditor

Permalink
When editing a content block within a stack the "styles" box ist greyed out. Editing a content block outside a stack is no problem, styles can be applied.
What am I doing wrong? My c5 version is 8.2.1

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi carli,

Using the latest develop branch of concrete5, I was unable to reproduce this.

After selecting "Manage Stack Contents" in the stack edit mode menu, I can edit the Content block in the stack and apply styles from the Styles drop-down menu.
carli replied on at Permalink Reply
Hi MrKDilkington,

I have this in my page_theme.php

public function getThemeEditorClasses()
  {
    return array(
      array('title' => t('Highlight'), 'element' => 'span', 'attributes' => array('class' => 'highlight')
     )
    );
  }

It is working in blocks but not in stacks. The styles-box is greyed.
carli replied on at Permalink Reply
Using the inspector I see two different styles applied to the "Styles" combo box:

Using CKEditor in blocks:
<span id="cke_8" class="cke_combo cke_combo__styles cke_combo_off" role="presentation">
.
in stacks:
<span id="cke_8" role="presentation" class="cke_combo cke_combo__styles cke_combo_disabled" aria-disabled="true">
.
Any idea?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@carli

This is fixed in the upcoming concrete5 8.3.0.
carli replied on at Permalink Reply
Thank you.