1. Mitch Goldstein
  2. PowerBuilder
  3. Thursday, 29 March 2018 13:56 PM UTC

Hello,

My application sends outbound emails and I need my users to be able to edit the body of the email.  I'd like them to be able to format the body of the email with the same type of options as if you were in Outlook or another email tool which formats html emails.  I've looked at using the rtf editor, using it to build the email, then save to an html file for use with my email code.  It kind of works, but some of the formatting doesn't hold, like adding blank lines by hitting the return key in the rtf editor, don't come through when I save the rtf doc to html then send that html doc through the email client (testing with Chilkat).  I'd love thoughts on this process.  Is there an html editor I could use which would work better?

Thanks!

Mitch

Thierry Garrigues Accepted Answer Pending Moderation
  1. Thursday, 3 November 2022 10:29 AM UTC
  2. PowerBuilder
  3. # 1
Comment
  1. Miguel Leeuwe
  2. Thursday, 3 November 2022 10:36 AM UTC
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 3 November 2022 10:38 AM UTC
  1. Helpful
  1. Thierry Garrigues
  2. Thursday, 3 November 2022 10:49 AM UTC
it's corrected...
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 3 November 2022 10:18 AM UTC
  2. PowerBuilder
  3. # 2

Hi

We're doing exactly what you want to do, using the RTE control, but I have to admit that so far there's not a single version which doesn't have any problems. (For example pasting images causes us several bugs).

I'm hoping that pb2022 will finally give us a control that ticks all the boxes, but after several years I'm not too optimistic. The best way to go, in my opinion, is to use the new browser control combined with "TinyMCE" html editor. If you do a search on tinymce, you should be able to find several posts.

regards,

MiguelL

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 29 March 2018 14:11 PM UTC
  2. PowerBuilder
  3. # 3

The Microsoft WebBrowser control has an edit mode. I have an example:

http://www.topwizprogramming.com/freecode_webbrowser.html

 

Comment
  1. David Peace (Powersoft)
  2. Thursday, 3 November 2022 10:06 AM UTC
We're using the Microsoft WebBrowser control and I belive that this is based on IE whch must become obsolete at some point.



Does the New Chrome object in PB supoprt editing?
  1. Helpful
  1. Roland Smith
  2. Thursday, 3 November 2022 13:58 PM UTC
While the IE browser is now officially gone, the underlying WebBrowser control remains a part of the standard Windows installation.



The new built-in Web Browser Control uses CEF (Chromium Embedded Framework). Appeon is working on a re-write to use WebView2 which is Microsoft's version of Chromium they use in the Edge browser. I don't think editing is supported by Chromium.
  1. Helpful
  1. Roland Smith
  2. Thursday, 3 November 2022 14:00 PM UTC
I should add, Microsoft is not planning on removing the WebBrowser control from Windows as it is used by too many applications.
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.