Set custom tags in Bolt CKEditor

Xiao-Hu Tai
2017-11-14T11:16:42Z

bolt-ckeditor.md

In app/config/config.yml:

wysiwyg:
    (...)
    ck:
        (...)
        format_tags: "p;h2;h3;h4;info;warning;error;success"
        format_info: { name: "Info", element: "p", attributes: { 'class': 'info' } }
        format_warning: { name: "Warning", element: "p", attributes: { 'class': 'warning' } }
        format_error: { name: "Error", element: "p", attributes: { 'class': 'error' } }
        format_success: { name: "Success", element: "p", attributes: { 'class': 'success' } }