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

[Solved] HTML reformatting bug

3 Answers 96 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ramon Achten
Top achievements
Rank 1
Ramon Achten asked on 14 Oct 2009, 09:58 AM

Hi,

I’ve discovered a bug in the editor version
2009.2 826.

 

Steps to reproduce:

  1. Go to HTML view
  2. Paste the following HTML into the editor:
    <table cellspacing="0" cellpadding="0">  
        <tbody> 
            <tr> 
                <td valign="top">  
                    <img width="24px" height="20px" src="http://www.telerik.com/App_Themes/ProductOverview/quotmark-left.gif" alt="" /> 
                </td> 
                <td> 
                    <href="#left-item-1" style="font-family: arial, verdana, helvetica; color: #000000;  
                        font-size: 11px; text-decoration: none;">left item 1</a> 
                </td> 
            </tr> 
        </tbody> 
    </table> 
  3. Go to Design view
  4. Go to HTML view
  5. Now the “height” and “width” attributes of the IMG tag are duplicated. Also, they’ve lost the “px” indicator.

 

Is there a way to disable the HTML reformatting of the editor completely? If not, I would like to suggest it for a future version of the editor. For us, it’s very (very!) important to leave the HTML exactly as it is provided by us.


Thanks,
Ramon

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Oct 2009, 06:47 AM
Hi Ramon,

Please, excuse us for the inconvenience. We are aware of this problem and I have good news that it is already fixed in the Q3 2009 beta build of RadControls for ASP.NET AJAX. You can test it online here. The official Q3 release is scheduled for the beginning of November.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ramon Achten
Top achievements
Rank 1
answered on 19 Oct 2009, 07:02 AM
Hi Rumen,

Thanks for that. I'll test it in the lastest beta.

What about the ability to disable the HTML reformatting of the editor completely? This is of utmost importance to us.

Best regards,
Ramon
0
Rumen
Telerik team
answered on 19 Oct 2009, 07:27 AM
Hi Ramon,

It is impossible to completely disable the HTML reformatting because the editor's content area is an editable IFRAME which uses the Rich Text Editing engine of the browser. If the content is not well formed or contains invalid tags / attributes the browser validates the content and changes it. Internet Explorer also repositions the attributes inside the tags and this cannot be stopped.

What you can do is to disable the RadEditor built-in filters and leave the browser to manige the production and formatting of the HTML content.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Ramon Achten
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ramon Achten
Top achievements
Rank 1
Share this question
or