Lebans HTML Editor

  • Thread starter Thread starter miTcheLL
  • Start date Start date
M

miTcheLL

Wow, what a sweet piece of work. Anybody familiar with this?
It all works beautifully for me with one exception. The form background
if changed doesn't seem to stick. It's like it strips out the <body
bgcolor="#66FFB3">
from the HTML. It only gets everything in-between <body> and </body>.
I see that this uses the Microsoft Web Browser ActiveX control.
I see that the HTML is passed to the form by assigning the txtMemo field
to Me.WBrowser.Object.Document.body.innerHTML
I have been unable to find detailed documentation on the MS Web Browser
control. There is limited info on the Office 97 CD. Is there an outerHTML
property or some other that would pick up more of the HTML?

Any help would greatly be appreciated in advance,

Thanks,

miTch
 
I remember this issue when I first produce the editor. As you've noticed
the Background color is a prop of the Document object and not the
Browser control. It's been a while but I remember testing several
different methods without arriving at a solution that would allow for
persistence within the HTML source.

For detailed info on using the control see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml
/reference/constants/formatblock.asp

If you find a solution please let me know and I will incorporate your
fix in the next release.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top