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

RadEditor - Tab and Indent for alignment

1 Answer 135 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shweta malpani
Top achievements
Rank 1
Shweta malpani asked on 31 Mar 2011, 05:09 AM


We are planning to use RadEditor for creating our well formatted documents.

We want to create Text at certain positions in the editor.
These positions need to be defined in RadEditor by Creating Tab or Indent positions.

Example -

 This        text  is     indented
 and         starts at  certain        tabbed positions!

Please let me know how I can do this in RadEditor.

thanks
Shweta

1 Answer, 1 is accepted

Sort by
0
Neil
Top achievements
Rank 1
answered on 05 Apr 2011, 04:46 PM
You could create CSS classes such as tabx1, tabx2, tabx3 etc that adds left margin, then apply that class to the word.  The CSS classes can be added through the RADEditors CssClasses

.tabx1 { margin-left: 20px; }
.tabx2 { margin-left: 40px; }
.tabx3 { margin-left: 60px; }


<telerik:RadEditor  ID="RadEditor1" runat="server">
        <CssClasses>
                <telerik:EditorCssClass Name="Tab 1" Value=".tabx1" />
         </CssClasses>
</telerik:RadEditor>

Tags
Editor
Asked by
Shweta malpani
Top achievements
Rank 1
Answers by
Neil
Top achievements
Rank 1
Share this question
or