# The new accordion block, editing the CKEditor

**URL:** https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488
**Category:** Using Concrete / Help
**Created:** [February 21, 2022, 1:18pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488 "2022-02-21T13:18:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Fishueel](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fishueel/32/1176_2.png) [@Fishueel](https://forums.concretecms.org/u/Fishueel)
#### Post date: [February 21, 2022, 1:18pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/1 "2022-02-21T13:18:40Z")

</div>

Hey all!

I am currently editing the accordion block by adding extra input fields/options.  
However, one thing what i cant seem to figure out is how the CKEditor is initialized.

I would like to add extra formats like: h4, h5 and h6 . But i cant find any config options.

Can anyone else help me out?

Cheers!  
Darryl

---

<div class="post-metadata">

### Author: ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)
#### Post date: [February 21, 2022, 2:31pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/2 "2022-02-21T14:31:25Z")

</div>

A shameless plug here, you can do all sorts of stuff with accordions in Magic Tabs.

> **[Magic Tabs - concrete5](https://marketplace.concretecms.com/marketplace/addons/magic-tabs1)**
>
> Organise anything into tabs, vertical tabs or accordions simply by inserting a Magic Tabs block where you want to start a new tab.

---

<div class="post-metadata">

### Author: ![Fishueel](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fishueel/32/1176_2.png) [@Fishueel](https://forums.concretecms.org/u/Fishueel)
#### Post date: [February 21, 2022, 6:50pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/3 "2022-02-21T18:50:07Z")

</div>

Hi, sorry forgot to mention this in my previous message.

The final custom block wont be an accordion one, it would be columns with a heading, html text editor and button.

But i really like the sortable list that the accordion block is using, so thats why i used the accordion one as a template. Mainly because of the list.

---

<div class="post-metadata">

### Author: ![Fishueel](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fishueel/32/1176_2.png) [@Fishueel](https://forums.concretecms.org/u/Fishueel)
#### Post date: [February 28, 2022, 8:09am UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/4 "2022-02-28T08:09:34Z")

</div>

Still wondering if anyone has an idea on how to fix/add this. So far i saw a comment/post that stated: these changes has to be made in the site.php file. But that didnt work.

---

<div class="post-metadata">

### Author: ![bporte](https://forums.concretecms.org/user_avatar/forums.concretecms.org/bporte/32/5178_2.png) [@bporte](https://forums.concretecms.org/u/bporte)
#### Post date: [February 28, 2022, 9:01am UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/5 "2022-02-28T09:01:48Z")

</div>

Hi,  
In application/config/generated\_overrides/site.php, I had “h5” and it’s ok for me (v9.02) :

```auto
`return [
    'sites' => [
        'default' => [
            'editor' => [
                'ckeditor4' => [
                    'custom_config_options' => [
                        'format_tags' => 'p;h2;h3;h5',
                    ],
                ],
            ],
        ],
    ],
];

```

For personnal blocks, i had to limitated functionnality, I make it like this :

```auto
$editor = \Core::make('editor');
$editor->getPluginManager()->deselect(array('sourcedialog','sourcearea','tableresize','tableselection','tabletools','table','image'));
echo $editor->outputEditorWithOptions('texte[]', array(), $texte);

```

Hope it helps.  
Bruno

---

<div class="post-metadata">

### Author: ![Fishueel](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fishueel/32/1176_2.png) [@Fishueel](https://forums.concretecms.org/u/Fishueel)
#### Post date: [March 21, 2022, 1:06pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/6 "2022-03-21T13:06:20Z")

</div>

Hey Bruno, thanks for the tips! I’ll look into it!

---

<div class="post-metadata">

### Author: ![zoeDC](https://forums.concretecms.org/user_avatar/forums.concretecms.org/zoedc/32/3809_2.png) [@zoeDC](https://forums.concretecms.org/u/zoeDC)
#### Post date: [March 21, 2022, 4:19pm UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/7 "2022-03-21T16:19:11Z")

</div>

Accordion block in Elemental v. 9: my ckeditor is properly initialised, but wont read my ThemeEditorClasses.

But the content block, my ThemeEditorClasses are working fine. Why would that be? Thanks for a hint.

---

<div class="post-metadata">

### Author: ![Fishueel](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fishueel/32/1176_2.png) [@Fishueel](https://forums.concretecms.org/u/Fishueel)
#### Post date: [March 28, 2022, 9:20am UTC](https://forums.concretecms.org/t/the-new-accordion-block-editing-the-ckeditor/2488/8 "2022-03-28T09:20:27Z")

</div>

Unfortunately i wont be of much help since i am still pretty new to Concrete.

But perhaps with this bump someone else might find your question and has a solution for it.
