I know this is a very picky problem but still it exists!
Retro steps:
(you may do this directly on http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditorExtender/HTMLEditorExtender.aspx)
1- lets start by going into source mode and type this: Hello <b>world!</b><span class="test">This Is A Test</span>
2- switch to design mode
3- focus out of the control (by clicking anywhere else)
4- switch to source mode again and you will see your class disappear (this is not magic... it's a bug)
*This bug is valid for all browser on all versions! (unless i am mistaken but I've tested it in Chrome Firefox IE9 IE8(through IE9) and stopped there :P figured if it worked in <IE8 it was pretty much still a bug on all major browsers)
Thanks
Comments: Well after doing some searching in the code, I've noticed that this behavior was coded therefore works as designed. Although i really don't understand why would you want to remove the ID, the Class and the Width of an element if specified by user. For people that want to keep the IDs, Classes and Widths please comment in HtmlEditorExtenderBehavior.Pre.js line 711 to 725. Side note: if you wish to keep your tags from being replaced to < and > you may also comment lines 760 and 761. Hopefully this will help some people :P
Retro steps:
(you may do this directly on http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditorExtender/HTMLEditorExtender.aspx)
1- lets start by going into source mode and type this: Hello <b>world!</b><span class="test">This Is A Test</span>
2- switch to design mode
3- focus out of the control (by clicking anywhere else)
4- switch to source mode again and you will see your class disappear (this is not magic... it's a bug)
*This bug is valid for all browser on all versions! (unless i am mistaken but I've tested it in Chrome Firefox IE9 IE8(through IE9) and stopped there :P figured if it worked in <IE8 it was pretty much still a bug on all major browsers)
Thanks
Comments: Well after doing some searching in the code, I've noticed that this behavior was coded therefore works as designed. Although i really don't understand why would you want to remove the ID, the Class and the Width of an element if specified by user. For people that want to keep the IDs, Classes and Widths please comment in HtmlEditorExtenderBehavior.Pre.js line 711 to 725. Side note: if you wish to keep your tags from being replaced to < and > you may also comment lines 760 and 761. Hopefully this will help some people :P