RadEditor dropping IE Comments

2 posts, 0 answers
  1. Mark Kucera
    Mark Kucera avatar
    84 posts
    Member since:
    Sep 2009

    Posted 30 Nov 2011 Link to this post

    Hey guys, i know this one might be a bit wierd.  I have a client who is trying to design an html page using the RadEditor (upgraded to the latest internal build this week).  The HTML has some IE tags enclosed in html comment fields.  they do some browser detection and then write out the <HTML> tag with the appropriate style tags added.  They want the code to look like this:

    <!doctype html>
    <!--[if IEMobile 7]><html class="no-js iem7 oldie"><![endif]-->
    <!--[if lt IE 7]><html class="no-js ie6 oldie" lang="en"><![endif]-->
    <!--[if (IE 7)&!(IEMobile)]><html class="no-js ie7 oldie" lang="en"><![endif]-->
    <!--[if (IE 8)&!(IEMobile)]><html class="no-js ie8 oldie" lang="en"><![endif]-->
    <!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]-->
    <!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html class="no-js" lang="en"><!--<![endif]-->

    but when i insert this into the RadEditor it comes out looking like this:

    <html class="no-js" lang="en"><!--<![endif]--><!--[if (gte IE 9)|(gt IEMobile 7)]><!--><!--<![endif]-->

    How can i configure, or what can i add to my editor code to prevent this re-write from occurring?

    Thanks!
    -Mark
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 05 Dec 2011 Link to this post

    Hello Mark,

    Thank you for reporting this problem.

    I logged it for fixing in our bug tracking system. Here you can find the PITS Issue: Public URL and check its status. If more users votes for this public PITS item or report it, we will raise its priority.

    I also updated your Telerik points for your feedback.

    All the best,
    Rumen
    the Telerik team
    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. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top