Using HTC's in design mode
From: Colin Green (bughunter_at_hotmail.com)
Date: 06/18/04
- Next message: anonymous_at_discussions.microsoft.com: "Is it a bug?"
- Previous message: Jan Il: "Re: no open/save dialog box for .exe's - just save as"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Jun 2004 09:07:59 -0700
I noticed that when I load a HTML document that contains HTML
Components (HTCs) into IE6, that the HTC elements disappear if I
programatically switch the HTML document into design mode. Very simply
I do this by setting IHTMLDocument2.designMode=true
An alternative way of doing this is to ensure there is
contentEditable="true" attribute on the <body> element in the document
before I load it. This does solve this particular problem, but this
causes problems for me elsewhere, e.g. I am currently using
IPersistStreamInit.IsDirty() to determine if the document has been
edited - if I use contentEditable="true" then this flag no longer
reflects the state of the document.
Perhaps if I could place the HTC definitions within the document I am
trying to render this would solve the problem? Unfortunately I can't
see any way of doing this.
Any ideas?
Thanks in advance,
Colin Green
- Next message: anonymous_at_discussions.microsoft.com: "Is it a bug?"
- Previous message: Jan Il: "Re: no open/save dialog box for .exe's - just save as"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|