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

RadEditor doesn't interpret table tag

2 Answers 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amina
Top achievements
Rank 1
Amina asked on 23 May 2013, 04:05 PM
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>   
  </telerik:RadEditor>  
   
         
                
   
                  
              

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 May 2013, 03:59 PM
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">
</telerik:RadEditor>


Regards,
Marin Bratanov
Telerik
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.
0
Amina
Top achievements
Rank 1
answered on 27 May 2013, 04:11 PM
Thank you so much, it works great!!!!
Tags
Editor
Asked by
Amina
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Amina
Top achievements
Rank 1
Share this question
or