This is a migrated thread and some comments may be shown as answers.

Fore- and background color control

5 Answers 76 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 17 Mar 2008, 01:29 PM
Hi,

we already limited the colors available in the fore- and background color controls, but there still is the possibility to add "New color..." or "Hex color...".

Is there a way to get rid of this two entries? Maybe by just hiding the right table cells?

Greetings,

Robert

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Mar 2008, 01:55 PM
Hi Robert,

You need to set the following tag
<property name="AllowCustomColors">false</property>

in the ListConfigFile.xml and ConfigFile.xml placed in the following folder \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.1.0__1f131a624888eeed\RadControls\Editor.

This setting will hide the Add HEX and New Color items in the Fore- and BackColor dropdowns.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert
Top achievements
Rank 1
answered on 19 Mar 2008, 05:17 PM
Thanks, it worked.

One more question: is there any chance to define RadEditor fore- and background-colors independetly in a MOSS environment?
0
Rumen
Telerik team
answered on 20 Mar 2008, 08:26 AM
Hi Robert,

Since the color pallets of both dropdowns are populated through the Colors collection of RadEditor it is not possible to define their colors separately.

Let me know if your request is other.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Robert
Top achievements
Rank 1
answered on 20 Mar 2008, 08:53 AM
Hi Rumen,

this is exactly what I wanted to know... but not wanted to hear :D

Is there any plan to maybe change RadEditor to allow definition of different color palettes for fore- and background? We want to allow various table background colors, but just black and white for the foreground.

Oh... just maybe found the solution: we build two controls, one setting the text font color of the marked text white, the other setting it black. Hm... we will try this and hide the foreground-color-control completly.

Regards,

Robert
0
Rumen
Telerik team
answered on 20 Mar 2008, 01:50 PM
Hi Robert,

I hope that the solution that you have found will work fine in your scenario.

However, I just want to share this code library with our community: Implementing RadColorPicker in RadEditor.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Robert
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Robert
Top achievements
Rank 1
Share this question
or