HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Few questions
Posted by: Kushan Ratnayake (203.115.18.---)
Date: Friday, 15-Nov-2002, 09:29:56

Great work!.

I have following questions about HTMLEditor control.
1. Can it control script and activex execution ? Or does it run them at all.
(may be using DISPID_AMBIENT_DLCONTROL as for webbrowser)

2. What are the differences between MSHTML and Webbrowser when used as an editor?.



Re: Few questions
Posted by: Tim Anderson (
Date: Friday, 15-Nov-2002, 09:57:02


If you look at the IDOCHOSTUIHANDLER implementation and the GetHostInfo method, you'll see that it has a DOCHOSTUIINFO parameter. You can set its dwFlags member to disable script, which is what Ive done in the HTML Editor, but of course you can change this. See MSDN, look up DOCHOSTUIFLAG.

As to the second question, the WebBrowser control hosts MSHTML; it is MSHTML that provides the editing features in both cases. However, hosting MSHTML directly gives you a lower level of access, particularly useful when it comes to features that are not available through script.


Your Name: 
Your Email: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.