The new accordion block, editing the CKEditor

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

`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 :

$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

1 Like