Html editor for Delphi

Posted on 2003-03-19
Medium Priority
Last Modified: 2013-12-16
I need a html editor for delphi. My program has to handle emails like outlook(I can directly edit in the email). User will do modificatio that will be automatically convert to html code.

Question by:chookoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8168898

I maybe have what you are looking for constructing text on  HTML pages. You are looking for something for very little points.

What I have is a Delphi text editor using colored text, that allows the user to enter text into a Memo1. After completion, a click adds a "<br>" to the end of each of the lines in Memo1 and a "<html>" before Memo1 text  and "</html>" at the end before being put into Memo2. IE processes the message that is in Memo2 and opens a IE html page, the user then can save what is on the IE html page.
 A Delphi spell checker is included. No provision is made for images to be added to the text. To my knowledge with this arrangement of Memo's no image additions can be expected or is possible.

Still interested? Or are there enough hints here to get you started on your own?



Accepted Solution

Zip58 earned 100 total points
ID: 8170296
Hi chookoo

mabey you can use the HTML Display Components from http://www.pbear.com/htmlviewers.html for this task

PS. The ThtmlLite HTML Viewer Components are free



Expert Comment

ID: 9316678
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 26198884
You already have one in Delphi, it is the TWebBrowser component.

Insert the TWebBrowser into your project and to turn it into an editor add the folowing:-

USES ... MSHTML, ...
(WebBrowser1.Document as IHTMLDocument2).designMode := 'on';   // Start editing

To get the HTML just use the following:-

Text := (WebBrowser1.Document as IHTMLDocument2).body.innerHTML;  // Get the HTML

You need a document inside the control, creating it does not make a blank HTML document so "Document" will be NIL.  To create a blank document, use the following:-

WebBrowser1.Navigate('about:blank'); // Blank doc

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question