Specify custom colors available in FOS CKEditor

I’m using FOS CKEditor in a Symfony 4 project.
In my fos_ck_editor.yml config file, i configured an editor like this :

fos_ck_editor:
    input_sync: true

    default_config: newsletter_content
    configs:
        newsletter_content:
            title: false
            language: fr
            toolbar:
            - [ 'Bold', 'Italic', 'Underline', 'Link', 'Unlink', 'TextColor' ]
            colorButton:
            colors: '#DE1F35'

I want to use the configuration variable config.colorButton_colors as described in ck editor documentation but i don’t know how to do that in the yaml config file.

Source: Symfony4 Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *