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

Incorrect Toolbar Icons

1 Answer 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brete
Top achievements
Rank 1
Brete asked on 05 Mar 2009, 10:04 PM
In Rad Editor 2008.3.1314.35.
 

It appears that Icon Possitions in the Editor style sheet  for the Save and Cancel Buttons are incorrect.  

The Save button is rendering as a tiny arrow and the Cancel Button is rendering as a Envelope with a Lock over it.  
..\RadControls for ASPNET AJAX Q3 2008\Skins\editor.css
Contains


.Cancel

{

background-position: -1687px center;

}


.FileSave,

.FileSaveAs,

.Save,

.SaveLocal

{

background-position: -1407px center;

}


These position appear to be the Icon locations in the previous version of the Style Sheet. 

How should I edit the editor.css to reflect the correct locations? 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Mar 2009, 12:16 PM
Hello Brete,

To increase the loading speed of the control we removed some of the custom icons from the toolbar sprites of RadEditor. The Save icon was one of the removed icons, but since it is frequently used, we decided to add it back to the sprite for the official Q1 2009 release. This means that you will not experience this problem once you upgrade to the new version.

You can temporary fix the problem by using a custom Save and Cancel icons and add it to the toolbar with these css classes:

<style type="text/css">
.rade_toolbar.Telerik .Save
{
    background-image: url(http://demos.telerik.com/aspnet-ajax-beta/Editor/Examples/editorinradwindow/Icons/Save.gif) !important;
}

.FileSave, .FileSaveAs, .Save, .SaveLocal
{
    background-position:0 center !important;
}

.rade_toolbar.Telerik .Cancel
{
    background-image: url(http://demos.telerik.com/aspnet-ajax-beta/Editor/Examples/customtools/Icons/Cancel.gif) !important;
}

.Cancel
{
    background-position: center;
}
</style>
<telerik:radeditor runat="server" Skin="Telerik" ID="RadEditor1">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="Save" />
            <telerik:EditorTool Name="Cancel" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:radeditor>


Best wishes,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Brete
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or