RadEditor doesn't interpret table tag

3 posts, 0 answers
  1. Amina
    Amina avatar
    2 posts
    Member since:
    May 2013

    Posted 23 May 2013 Link to this post

    Hi, first of all, I'm soory for my bad english ^^,
    So, when i run the page  the border of the table tag, are like dotted border, even if i used a style that masks the borders.

    here's the code C#:

    string txt = "<style type=text/css> table{border=0;}</style>" +
                      "<table>  <tbody><tr> <td>name</td><td>:</td> <td> Sara </td> </tr>" +        
                       "</tbody></table>" ;
    RadEditor1.Content=  txt ;

    ps: I used also this style but it still doesn't work:
     "<style type=text/css> table{frame:void; rules:none;}</style>"

    and the code ASP:

      <telerik:RadEditor runat="server" ID="RadEditor1"   Width="850px"  Height="1265px"  EnableResize="false"  >
              <Content>      </Content>   
  2. Marin Bratanov
    Marin Bratanov avatar
    4614 posts

    Posted 27 May 2013 Link to this post

    Hi Amina,

    The content area of the RadEditor adds the dotted border for the tables in order to make them visible for editing, much like MS Word does. You can override this by using the ContentAreaCssFile and pointing it to a stylesheet that has the desired styles. A blank file will simply remove such formatting that is present by default in the control.
    <telerik:RadEditor ID="RadEditor1" runat="server" ContentAreaCssFile="myContentAreaStyles.css">

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Amina
    Amina avatar
    2 posts
    Member since:
    May 2013

    Posted 27 May 2013 Link to this post

    Thank you so much, it works great!!!!
Back to Top