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

Unwanted space inside RadEditor

3 Answers 64 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Daniel asked on 10 Mar 2009, 07:45 AM
Hi. When in design mode, the cursor appears indented or padding to the left and top. When going to HTML or preview it disappers. Is this a feature of the RadEditor? Am I missing something? Here's my code:

<telerik:RadEditor ID="reDetails" runat="server" Skin="Telerik" StripFormattingOnPaste="All" SkinID="BasicSetOfTools">
<Content></Content>
</telerik:RadEditor>

3 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 11 Mar 2009, 03:10 AM
I've found out why it is doing this. I have a css applied to the body element.

body
{
    background: #E7E7E2;
    color: #444;
    font: normal 11px Verdana, Tahoma, sans-serif;
    padding: 64px;
}

So it is adding 64px of padding to the editor. It is easy enough to fix but is the rad editor inheriting this style? It only happens with IE6 and not IE7 or FireFox. Any thoughts?
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 12 Mar 2009, 02:11 AM
This is great, I'm still talking to myself. I now use ContentAreaCssFile and this fixes the problem with the Content part but not the Preview part. Does anyone know how to apply a style to the Preview?
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 12 Mar 2009, 02:19 AM
Okay adding RadEditor1.CssFiles.Add("/External.css") to the codebehind fixes this...
Tags
Editor
Asked by
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or