Jump to content

How to configure CKEditor(textarea field) to enable Color toolbar?


KangLing
 Share

Recommended Posts

I download 'Color Button' plugin and its dependencies 'Floating Panel', 'Panel Button', ''Panel, 'Button' plugins.

unzip and upload them to the /site/modules/InputfieldCKEditor/plugins directory.

go to Setup -> Fields -> myfield -> Input, scroll down to the 'Plugins' section and check the box for these 5 plugins. Save.

but the Color Buttons are not automatically added to the toolbar.

Link to comment
Share on other sites

Did you add "TextColor, BGColor" to the CKEditor Toolbar? My first line looks like this:

Format, -, Bold, Italic, Underline, -, TextColor, BGColor, -, RemoveFormat

You can further customize what colors will be allowed, under Custom Config Options:

colorButton_enableMore: false 
colorButton_colors: F00,FFC609,FFF 
  • Like 5
Link to comment
Share on other sites

Did you add "TextColor, BGColor" to the CKEditor Toolbar? My first line looks like this:

Format, -, Bold, Italic, Underline, -, TextColor, BGColor, -, RemoveFormat

You can further customize what colors will be allowed, under Custom Config Options:

colorButton_enableMore: false 
colorButton_colors: F00,FFC609,FFF

Thank you, matjazp.It works!

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...