24
votes

I need a WYSIWYG editor Component that I can use in the Delphi application to create the body of the email in HTML.

5
In 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
[My Answer to making a complete HTML Editor very easily using Delphi and Bsalsa EmbeddedWB - web browser components][1] [1]: stackoverflow.com/questions/13024987/… - Darren
Too bad this topic was prematurely closed. It has so many upvotes and 'favorite' votes. I personally vote for reopening. - Server Overflow
Search your questions first. please see delphihtmlcomponents.com/editor.html - Hosein

5 Answers

8
votes

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
votes

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.

3
votes

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!

2
votes

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

0
votes

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.