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

Editor Modifies My HTML

2 Answers 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
The Stormm
Top achievements
Rank 1
The Stormm asked on 26 Mar 2010, 11:26 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 Mar 2010, 02:20 PM
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.
0
The Stormm
Top achievements
Rank 1
answered on 29 Mar 2010, 04:59 PM
Rumen,

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

Stormm
Tags
Editor
Asked by
The Stormm
Top achievements
Rank 1
Answers by
Rumen
Telerik team
The Stormm
Top achievements
Rank 1
Share this question
or