Delphi - Is there a suitable WYSIWYG HTML Editor Component for VCL/FMX app?

33,815

Solution 1

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.

Solution 2

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.

Solution 3

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!

Solution 4

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

Share:
33,815
Pieter van Wyk
Author by

Pieter van Wyk

Delphi application developer. Brentwood and Manningtree, UK.

Updated on June 07, 2021

Comments

  • Pieter van Wyk
    Pieter van Wyk almost 3 years

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