Snippets
toolbars.toolbar-1.snippets
toolbars.toolbar-1.snippets
array
This option allows you to define and customize the snippets available within the toolbar. Snippets are pre-defined content blocks that can be easily inserted into the CKEditor field.
By default, there are some pre-defined snippets located in the resources/views/ckeditor
directory. However, you can add more snippets as needed by specifying them in the toolbars.toolbar-1.snippets
configuration option.
To add and customize snippets within Toolbar 1, update the value of toolbars.toolbar-1.snippets
in the config/nova-ckeditor.php
file with the desired array of snippet items.
Example:
It's important to note that snippets will only render CKEditor elements. Standard HTML or figures such as tables, images, and videos. For more information on using standard HTML or figures, refer to the CKEditor documentation.
Last updated