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

[Solved] Show only edit modes icons

3 Answers 124 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Frank Kocher
Top achievements
Rank 1
Frank Kocher asked on 23 Dec 2009, 08:52 AM
Hi,

is it possible to show only the edit mode icons, e.g. without the text preview or html. Before we changed to Telerik ASP.NET AJAX Controls we had at the classic controls a property to define that only the icons will be shown.

Thanks for any hints.

Frank

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 23 Dec 2009, 09:09 AM
Hello Frank,

RadEditor offers the possibility to show/hide specific view modes by setting the EditModes property to match the requested scenario, e.g:
<telerik:RadEditor runat="server" ID="RadEditor1" EditModes="Design,Preview"></telerik:RadEditor>

Additional information on the subject is available in the following help article:
Edit Modes

Greetings,
Dobromir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Frank Kocher
Top achievements
Rank 1
answered on 04 Jan 2010, 08:56 AM
Hi Dobromir,

i know the EditModes property already. What i meant is the apperance of the edit modes at the editor. Ordinary the icons and the text will be shown. But what i need is the apparance in the attached picture file shown (without the red border, is only for help).

Greetings Frank


0
Accepted
Martin
Telerik team
answered on 04 Jan 2010, 09:31 AM
Hi Frank Kocher,

Here is the CSS that you can use in order to remove the text from the editor modes buttons:

.reEditorModes a
{
 background: none !important;
 width: 22px !important;
}
   
 
.reEditorModes span
{
 text-indent: -9999px;
}


... However, please, keep in mind that the approach that has been used prevents the buttons from having a "selected" state and you will need to create your own "selected" state image and refer it with a CSS like this:

.reEditorModes a.reMode_selected
{
 background: url('SelectedState.gif') no-repeat center !important;
}


Greetings,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Frank Kocher
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Frank Kocher
Top achievements
Rank 1
Martin
Telerik team
Share this question
or