Styles

toolbars.toolbar-1.styles

Property Name
Type
Default

toolbars.toolbar-1.styles

array

The style feature lets you apply pre-configured styles to elements in your content. It works by adding one or more CSS classes to an element to change its appearance or add semantic information.

To configure the style feature within Toolbar 1, update the value of toolbars.toolbar-1.styles in the config/nova-ckeditor.php file with the desired language codes.

Example:

<?php

return [    
    'toolbars' => [
        'toolbar-1' => [
            'styles' => [
                [
                    'name'    => 'Article Category',
                    'element' => 'h3',
                    'classes' => ['article-category']
                ],
                [
                    'name'    => 'Info Box',
                    'element' => 'p',
                    'classes' => ['info-box']
                ],
            ],
        ],
    ]
];

Last updated