Editor Modifies My HTML

3 posts, 1 answers
  1. The Stormm
    The Stormm avatar
    6 posts
    Member since:
    Jul 2007

    Posted 26 Mar 2010 Link to this post

    I have created a custom module for the editor that allows me to insert a data figure.  What I want to insert is a custom HTML tag that is replaced at runtime (via regex) with content from the figure table.  Here is what I initially input...

    <figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</figure>  

    The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

    <figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506" />[Figure: This is a test figure title...] 
    This causes my entire figure insert protocol to fail and the users now see '[Figure: This is a test figure title...]" instead of an image and a legend.  As far as I can tell the issue appear to be specific to IE as I was successfully working with this process in FF.

    Is there any way I can turn off the auto-formatting that is happening?
    The issue arises when I toggle between Design and HTML view OR when I save the data.  The editor automatically formats my tag to...

  2. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 29 Mar 2010 Link to this post

    Hello The Stormm,

    Internet Explorer works better with custom tags that have a specified namespace. See this article for more information: http://msdn.microsoft.com/en-us/library/ms531076%28VS.85%29.aspx

    You should rename the tag as follows and you will not experience the reported problem:

    <my:figure id="ddd91a0c-4db2-413f-8fff-3a84bc3d5506">[Figure: This is a test figure title...]</my:figure>

    All the best,
    Rumen
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. The Stormm
    The Stormm avatar
    6 posts
    Member since:
    Jul 2007

    Posted 29 Mar 2010 Link to this post

    Rumen,

    Two words for you...  Rock and Roll.  Thank you so much, everything works perfectly now.

    Stormm
Back to Top