I need a WYSIWYG editor Component that I can use in the Delphi application to create the body of the email in HTML.
-
3In the end we decided to use the JvRichEdit as it is free. The rich text is saved in a BLOB and is converted to HTML at the point we construct the email. Seems to work ok and did not involve any money. The RichEdit example that is supplied with JVCL is superb! Thanks for all the tips. Pieter. – Pieter van Wyk Jan 29 '10 at 09:00
-
1[My Answer to making a complete HTML Editor very easily using Delphi and Bsalsa EmbeddedWB - web browser components][1] [1]: http://stackoverflow.com/questions/13024987/delphi-how-do-i-make-a-basic-wysiwyg-html-editor-using-delphi – Darren Oct 23 '12 at 23:42
-
1Too bad this topic was prematurely closed. It has so many upvotes and 'favorite' votes. I personally vote for reopening. – Gabriel Sep 20 '16 at 13:50
-
1This might be a solution: http://stackoverflow.com/questions/39594393/twebbrowser-crashes-with-most-html-files – Gabriel Sep 20 '16 at 13:51
-
Search your questions first. please see https://delphihtmlcomponents.com/editor.html – Jun 05 '21 at 14:48
5 Answers
We've used TRichView just recently to do HTML email functionality and found it quite adequate. We did evaluate WpTools and it does do exactly what we wanted however for our needs it was just too expensive especially when we always try and purchase site licences.
One thing we did find with WpTools is that it did implement a visual component or set of visual components that you could drop onto a form that implement the whole WYSIWYG UI (e.g. toolbars and such). It took a bit longer with TRichView to achieve the same thing.
Regarding conversion from/to html - TRichView can export html natively, however requires third-party libraries to import html which unfortunately (for us) are not commercially backed (i.e. community driven). So we've resorted to storing all content in RichText natively and only when sending the email do we convert it to html. WpTools has the ability to import/export to html natively.

- 5,717
- 8
- 47
- 78

- 148
- 7
-
If you use TMS they have TRTFEngine class which supports importing HTML. – Runner Jan 27 '10 at 11:37
-
@Runner - Thanks - wasn't aware of that. Turns out for our particular use-case saving the content in RichText worked out for the best as the inline images are stored within the RichText content. – Nick Brooks Jan 27 '10 at 11:42
-
Did you test what Outlook 2007 makes of your html e-mail? Outlook 2007 uses Word as it's html-viewer, which is of the WhatYouThinkYouGetIsNotReallyWhatYouGet sort. – The_Fox Jan 27 '10 at 14:35
-
@The_Fox - We did briefly test in Outlook 2007 without issue, however the emails that are typically sent from our application are not feature rich html emails. In our application we do provide the ability to paste in html source if the user needs pixel perfect reproduction of their email. – Nick Brooks Jan 28 '10 at 06:55
-
This solution gave me the answer I needed. The only difference is that we use JvRichEdit instead of TRichView. Thank you for the advice. Regards, Pieter. – Pieter van Wyk Jan 29 '10 at 09:06
-
All answers are too old. Any up to date solution that will run fine in Delphi Rio ? – delphirules Feb 21 '20 at 19:14
I have been looking for this as well for several years now.
The best solution I found, until now, is WpTools from WpCubed. It's not an exact Html editor, but an advanced word processing component which offers a copy mode to and from html. I am currently working on using this component in my Sitestepper web creation software (in the StepEdit html-editor to offer wysiwyg possibility). I think that certainly for email editing this could be used (although maybe a bit pricy for what you are looking for). I know the author is working an a better exchange to and from html.
But to be honest, I don't think you will find anything if you need a Delphi component.
I used to use HtmlEdit from Purposesoft, but I think this product has got his limitations and it's not fully supported anymore. But maybe for your purpose it's ok.

- 5,038
- 8
- 44
- 61
-
+1 WpTools works very well for this, as you can import from and export to HTML, which is all that is needed. – skamradt Jan 27 '10 at 17:23
-
I agree, but you if you want to have your own code (as there are comments and javascripts) intact, it doesn't preserve them (I hope the update the author is writing, fixes this problem. But for an email program, this would work very well (if you want to pay the price for it). – Edelcom Jan 27 '10 at 17:51
I've used EmbeddedWB from bsalsa. Basically it is the same as Delphi's TWebBrowser, but you have access to more features of the IE automation object. In the browser I loaded an HTML which looks like:
<html>
<head>
<title>Edit description</title>
</head>
<body contenteditable="true">
</body>
</html>
Marking an element by IE specific attribute "contenteditable", the IE implementation let's you edit the element's inner HTML in a WYSIWYG manner. You can get the content by automation calls (check bsalsa.com to see how to read the edited content). If you get the basics it is pretty simple to create a full blown HTML editor.
Good luck!

- 598
- 6
- 15
My answer using Bsalsa Web Browser Components - very easy complete HTML editor/viewer. delphi-how-do-i-make-a-basic-wysiwyg-html-editor-using-delphi
If using IE COM based components is not a problem then you can use this free product
http://bsalsa.com/product.html
I have just recently needed a free HTML WYSIWYG editor and I thinks this is the only thing out there. For me it works fine, but I don't need complicated elements. They can be done, but will a little more work.

- 6,073
- 26
- 38