RadEditor - Tab and Indent for alignment

2 posts, 0 answers
  1. Shweta malpani
    Shweta malpani avatar
    6 posts
    Member since:
    Jan 2010

    Posted 31 Mar 2011 Link to this post

    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.


  2. Neil
    Neil avatar
    50 posts
    Member since:
    Mar 2009

    Posted 05 Apr 2011 Link to this post

    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">
                    <telerik:EditorCssClass Name="Tab 1" Value=".tabx1" />

Back to Top