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

[Solved] Custom Button not showing up

2 Answers 142 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 04 Jan 2008, 07:08 PM
Hello there, when I add a custom button it shows up for the default skin, but when I change my sking to WebBlue, it does not show up.  Any ideas?

Herre is my style sheet: Default works, but WebBlue does not.

.rade_toolbar.Default .IESpell

{

background-image: url(http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif);

}

.rade_toolbar.WebBlue .IESpell

{

background-image: url(http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif);



This One WOrks:

<telerik:RadEditor ID="ContentBody" runat="server" ToolsFile="/Scripts/ToolsFile.xml" OnClientLoad="OnClientLoad" Width="700px" Height="345px">

</telerik:RadEditor>

This One Doesn't Work

<telerik:RadEditor ID="ContentBody" runat="server" ToolsFile="/Scripts/ToolsFile.xml" Skin="WebBlue" SkinID="WebBlue" OnClientLoad="OnClientLoad"

Width="700px" Height="345px">

 

</telerik:RadEditor>


 

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jan 2008, 03:36 PM
Hello John,

Please, set the !important attribute after the value of the background-image css property:

<style>
.rade_toolbar.WebBlue .IESpell
{
    background-image: url(http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/CustomDialog.gif) !important;
}
</style>

...

<telerik:RadEditor ID="ContentBody" runat="server" Skin="WebBlue"  Width="700px" Height="345px">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="IESpell" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>


This will display the custom button icon.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 10 Jan 2008, 08:31 PM
Great thanks for the help.
Tags
Editor
Asked by
John
Top achievements
Rank 1
Answers by
Rumen
Telerik team
John
Top achievements
Rank 1
Share this question
or