Fore- and background color control

6 posts, 0 answers
  1. Robert
    Robert avatar
    17 posts
    Member since:
    Oct 2007

    Posted 17 Mar 2008 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 17 Mar 2008 Link to this post

    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

  3. Robert
    Robert avatar
    17 posts
    Member since:
    Oct 2007

    Posted 19 Mar 2008 Link to this post

    Thanks, it worked.

    One more question: is there any chance to define RadEditor fore- and background-colors independetly in a MOSS environment?
  4. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 20 Mar 2008 Link to this post

    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
  5. Robert
    Robert avatar
    17 posts
    Member since:
    Oct 2007

    Posted 20 Mar 2008 Link to this post

    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
  6. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 20 Mar 2008 Link to this post

    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
Back to Top