Emanuele Ciriachi
Emanuele Ciriachi

Reputation: 2264

Sitecore 8: Adding a color widget to the Rich Text Editor

As per subject - I noticed that, surprisingly enough, there is no default option in the Rich Text Editor to color the text. Does anyone knows how to do it?

I searched online for the past hour or so, and found a lot of mutually contradicting material, probably dating back to older versions.

Upvotes: 2

Views: 1247

Answers (2)

Gatogordo
Gatogordo

Reputation: 2635

What I always do to give editors access to thing like that is work with css classes. You can attach a css file to the editor in the settings. The default value for "WebStylesheet" is "/default.css".

This way editors can alter some look & feel (e.g. change color) but in the boundaries that you decide. It also helps when you need to update. If css-classes were used the update is as easy as changing the css file. Otherwise all content has to be altered.

Upvotes: 3

Anton
Anton

Reputation: 9961

You should add your buttons under: /sitecore/system/Settings/Html Editor Profiles/Rich Text Default/Toolbar 1

For your situation you can copy these 2 items:

/sitecore/system/Settings/Html Editor Profiles/Rich Text Full/Toolbar 2/Forecolor

/sitecore/system/Settings/Html Editor Profiles/Rich Text Full/Toolbar 2/Backcolor

under:

/sitecore/system/Settings/Html Editor Profiles/Rich Text Default/Toolbar 1

P.S. It is in core database.

Upvotes: 3

Related Questions