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

custom color in editor

10 Answers 177 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ch Perez
Top achievements
Rank 1
Ch Perez asked on 27 Apr 2010, 10:25 AM
Hi,

i want disabled "ADD CUSTOM COLOR" in the colors icon in the Rad editor ?
i don't found in property :(

where i can disabled this function ?

thank's 
ch.

10 Answers, 1 is accepted

Sort by
0
Ch Perez
Top achievements
Rank 1
answered on 27 Apr 2010, 10:28 AM
sorry and the font Size in the xml file ?
this exemple doesn't work...

<RealfontSizes>
<RealfontSize name="10" />
<RelfontSize name="20" />
<RealfontSize name="30" />
   </RealfontSizes>
<fontSizes>
<fontSize name="10" />
<fontSize name="20" />
<fontSize name="30" />
   </fontSizes>


0
Rumen
Telerik team
answered on 27 Apr 2010, 10:32 AM
Hi Ch Perez,

In order to remove the Add Custom Color link from the ColorPicker tool, you need to add the following CSS declaration to the page with RadEditor:
.reCustomColor{diplay: none !important;}

You can see how to repopulate the RealFontSize dropdown in this help article: Real Font Sizes.

Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ch Perez
Top achievements
Rank 1
answered on 27 Apr 2010, 10:46 AM
thank's all it's ok only for the css you have a file exemple css ?
0
Rumen
Telerik team
answered on 27 Apr 2010, 11:37 AM
Hi Ch Perez,

All you need to do is to put this class in a style tag placed in the head of the page with RadEditor, e.g.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
    .reCustomColor{ display: none !important;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="AJAXScriptManager" runat="server"></asp:ScriptManager>
    <telerik:RadEditor ID="RadEditor1" runat="server"></telerik:RadEditor>
    
    </form>
</body>
</html>


All the best,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ch Perez
Top achievements
Rank 1
answered on 27 Apr 2010, 01:27 PM
excellent thank's you !!!
Ch.

0
Ch Perez
Top achievements
Rank 1
answered on 29 Apr 2010, 02:22 PM
Hi,
in the content area the color is white...
i place the css file 
                    <CssFiles>
                        <telerik:EditorCssFile Value="~/css/RadEditor.css" />
                    </CssFiles>
in my RadEditor.css
i have on ly this..

body
{
    font-family: Arial, Verdana, Tahoma !important;
    font-size: 16px !important;
    color:White;
    background-color:#464646;
}


all it's ok but when the editor load the color is white and change after css loaded ???
is it possible to do appear when the appearance is good ?
this will avoid the flash effect .


thank's.
ch.



0
Rumen
Telerik team
answered on 03 May 2010, 12:32 PM
Hi,

I was unable to reproduce this behavior, but I have two additional suggestions:

  • Set the ContentAreaCssFile property instead of the CssFiles property as shown in this demo: Customize Content Area.
  • If the above does not fix the issue set programmatically the color using this code:

<telerik:RadEditor
   ID="RadEditor1"
   OnClientLoad="OnClientLoad"
   runat="server">
</telerik:RadEditor>
...
<script type="text/javascript">
   function OnClientLoad(editor, args)
   {
      var style = editor.get_contentArea().style;
      style.backgroundImage = "none";
      style.backgroundColor = "black";
      style.color= "red";
      style.fontFamily= "Arial";
      style.fontSize= 15 + "px";
   }
</script>


The code example is taken from this help article: http://www.telerik.com/help/aspnet-ajax/settingeditorbackgroundandcolor.html
Regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ch Perez
Top achievements
Rank 1
answered on 03 May 2010, 01:53 PM
yes in your exemple i have a same probleme...
can you a grab sreen ?
0
Rumen
Telerik team
answered on 03 May 2010, 02:24 PM
Hi,

For your convenience I have attached a sample project where the problem is not reproducible. Please, test it and modify it so that the problem is reproducible. After that send it for examination by attaching the project to a support ticket.

All the best,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ch Perez
Top achievements
Rank 1
answered on 03 May 2010, 03:53 PM
You are the best !!!
thank's you so much.

Ch.
Tags
Editor
Asked by
Ch Perez
Top achievements
Rank 1
Answers by
Ch Perez
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or