HTML editor control
Does anybody know of a control which is kind of like an HTML editor in an ActiveX?
microsoft's dhtml edit control
Michael H. Pryor
Actually if you're starting from scratch you might be better off starting with the MSHTML control. Basically, you embed IE in your application, open to a blank page (about:blank), and set the contentEditable property of the body to TRUE. Lo and behold, HTML editing. All the UI (toolbars, etc) is up to you.
Why not use a RichTextBox for editing the HTML then use the Browser Control (MSHTML or WebBrowser i think it's called) when you switch to View mode? Or are you thinking more of a point and click WYSIWYG editor like FrontPage?
Joel, is it possible to seperate the code you have written to make the IE control pump out nice HTML? You could have a pretty good little product there, I know I would be interested in a component like that (and with the ability to copy and paste from Microsoft Word and lose the bad formatting HTML it adds).
This is more of Webpage tool, so I'm not sure if it works with C++, but I LOVE this:
I agree with Joel. MSHTML is the way to go. Once you learnt the basics, it is relatively easy to use. Try to avoid frame pages if you can. They may give you headache.
My main concern with MSHTML editor is the kind of ugly HTML it creates when you paste some text from, say, Microsoft Word or IE.
Coincidentally, I'm hacking on an existing textarea editor to plug accessibility compliance into it. No, its not ActiveX, its all JS and replaces an existing textarea in a HTML page and does work pretty well.
Look at this site [from ie click on the link demo] its pretty cool: http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/downloads/samples/internet/author/html/htmleditor/default.asp
I know of the perfect solution; an ActiveX control that saves you all of the hassle fo working with the MS DHTML stuff. Try the Think HTML Editor ActiveX Control at:
Fog Creek Home