You can remove TWebBrowser in the form and include the structure in it, for example:
// Delphi code.. (WebBrowser1.Document as IHTMLDocument2).designMode := 'on';
After completing the above line, the page will be available for editing. You can enter additional text, delete, etc. If you want to make the selection in bold or insert images, you will need to add a few buttons to program it. The best part is that you can do this either using Delphi (or C ++ builder in your case), or you can add javascript on the page to edit yourself.
Page content can be obtained from
(WebBrowser.Document as IHTMLDocument2).body.innerHTML;
Remember that (WebBrowser.Document as IHTMLDocument2) may be nil.
In any case, I can imagine that there are components around that do all the work for you, which is probably a better way than reinventing the wheel.
Wouter van nifterick
source share