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

RadEditor Strips aways Header Element

1 Answer 47 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kristopher
Top achievements
Rank 1
Kristopher asked on 11 Jul 2013, 04:59 PM
Hey, 

 In my code behind, when my page is loading, I load the content of the rad editor with the html from Cnn.com.  When the rad editor is first displayed (in design mode), the page appears as it should.  When I switch to the html mode, I can see the radeditor then strips away anything inbetween the header tags, and when I go back to design mode, it inserts bullet points at the top of the page.  When I manually enter the html from cnn.com into the html page and switch back and forth, this does not happen.  I've tried all the filters, and I'm still getting the same results.  

Pictures for comparison: 

http://imgur.com/a/nrtIE


1: First design is displayed.  Those spaces between the date and cnn.com doesn't matter.  Everything looks good. 
2: switch to html view.  The Head elements are stripped away (even with filter set to none).
3. Switch back to design: bullet points appear.  
4. Copy in the same source code into the html view 
5. Formatting stays.  


Any help would be much appreciated.  

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 16 Jul 2013, 08:46 AM
Hello Kristopher,

I tried to reproduce the described issue, but to no avail. I created a test project in which I simulate the content loading from another HTML file linked to CSS file and containing header tags in the body. While testing I did not found any unexpected behavior with the content in the Design mode, nor the HTML mode.

I am attaching to this message a short clip showing you the test process and an example project. Please check the setup in the sample, so that you could compare it with the one in your actual project. 

If you still encounter the described issue, please try modifying the attached sample in order to reproduce the problem. If this is not possible get back to me with a sample project isolating the problematic fields.

Regards,
Ianko
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 the blog feed now.
Tags
Editor
Asked by
Kristopher
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or