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

Editor Indent Feature

2 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Himadri Banerjee
Top achievements
Rank 1
Himadri Banerjee asked on 10 Nov 2008, 01:08 PM
I am having trouble with indent feature of RadEditor. I have cut and paste some lines from MS Word and I am stripping all formatting using StripFormattingOptions="AllExceptNewLines" option in my RadEditor. I am using the Nov. Service Pack. Now I have put a hard return on a line and then highlight it and hit the indent from the toolbar. RadEditor in indenting the whole section and not that line. Am I missing something.

Please advise
Himadri

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 Nov 2008, 06:23 PM
Hi Himadri,

RadEditor uses the rich text editing engine of the browser and the observed behavior is a browser related, e.g. the indentation and alignment are applied to the whole paragraph rather than to a single line/word of text. In this scenario the whole content is wrapped in a paragraph and the lines are divided by <br /> tags, however the indentation is applied over the whole content.

What I would suggest is setting the NewLineBr property to false, thus the editor will insert paragraph tag on every enter-key press and you will be able to apply the indentation and alignment per line.

Additionally, if you want to reduce the extra space between the paragraph blocks inside the editor's content area, you should set a global CSS paragraph style in your page with margin: 0px, e.g.

  <style>
       P { margin: 0px }
  </style>
    ...  
<telerik:RadEditor ID="RadEditor1" NewLineBr="false" runat="server"></telerik:RadEditor>


Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Himadri Banerjee
Top achievements
Rank 1
answered on 11 Nov 2008, 08:16 AM
Thank you for your support. It works.
Tags
Editor
Asked by
Himadri Banerjee
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Himadri Banerjee
Top achievements
Rank 1
Share this question
or