Search code examples
ckeditortypo3typo3-8.xrtetypo3-extensions

How to enable the colorbutton in the TYPO3 CKEditor


I'm trying to enable the colorbutton plugin to use the TextColor feature in the TYPO3 CKEditor but it won't work.

I've already tried to include all needed external plugins which are required by the colorbutton plugin. I've downloaded the plugins for the Version 4.7 directly from the CKEditor website (button, panelbutton, panel, floatpanel). But everytime when I include panelbutton or colorbutton the Editor in the TYPO3 Backend doesn't work anymore.

Code where the plugins are getting included: Code where the plugins gets included

Editor broke after including panelbutton or colorbutton plugins: Editor broke after including panelbutton or colorbutton My goal is to have this button in the toolbar: goal


Solution

  • The following configuration should work:

    editor:
        config:
            toolbarGroups:
                - { name: colors }
    
            extraPlugins:
                - colorbutton
    
            #configuration example:
            colorButton_colors: "F49800,B9B9B9,75A75A"