RadEditor Strips aways Header Element

2 posts, 0 answers
  1. Kristopher
    Kristopher avatar
    13 posts
    Member since:
    Jul 2013

    Posted 11 Jul 2013 Link to this post

    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.  
  2. Ianko
    Admin
    Ianko avatar
    1864 posts

    Posted 16 Jul 2013 Link to this post

    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.
Back to Top