1. Rishi Panthee
  2. PowerBuilder
  3. Friday, 11 October 2024 19:21 PM UTC

Is there a WYSIWGY to markdown editor for powerbuilder(something like: https://mdxeditor.dev/) and just a normal renderer as well(with no editor capabilities).

Accepted Answer
Rishi Panthee Accepted Answer Pending Moderation
  1. Monday, 21 October 2024 18:39 PM UTC
  2. PowerBuilder
  3. # Permalink

The solution that we decided to go with was to create the markdown editor in a React App, export it to a single file and then load that file in a webview and add a function in the JS to retrieve the markdown which can be called by PB to retrieve the value. 

The webview included in 2021 is too old to render it properly, but 2022R3 does work correctly.

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 21 October 2024 18:59 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
Rishi Panthee Accepted Answer Pending Moderation
  1. Monday, 14 October 2024 19:49 PM UTC
  2. PowerBuilder
  3. # 1

@Chris I can't make more comments but:

Yup, there's a section that shows WYSIWYG editors for webapps in that awesome list: https://github.com/mundimark/awesome-markdown-editors?tab=readme-ov-file#wysiwyg-markdown-editors-for-integration-in-web-apps but it's not a native PB editor like we were looking for. For now I think we are going to use a webview to render a Markdown editor developed for the web and figure out how to pass data back from the webview to PB.

 

is a response to :

"I wonder if something like this might work ...

https://github.com/mundimark/awesome-markdown-editors"

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 October 2024 16:37 PM UTC
  2. PowerBuilder
  3. # 2

Hi Rishi, Have you tried the RichTextEdit control or RichText DataWindow?  Or as an alternative, you can load whatever HTML/JS editor you said you developed into the WebBrowser control.

Comment
  1. Rishi Panthee
  2. Monday, 14 October 2024 17:05 PM UTC
The RichText controls won't work since they don't give an output in Markdown like we need. And I do think that our solution is going to have to be to load up an editor in a WebBrowser OLE object but was hoping to avoid that and use a native solution if possible.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 14 October 2024 17:43 PM UTC
If RichText control won't work then there is no other native solution.
  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 October 2024 20:02 PM UTC
  2. PowerBuilder
  3. # 3

Live example from PB 2025 right now ...

Comment
  1. Chris Pollach @Appeon
  2. Monday, 14 October 2024 17:11 PM UTC
Interesting... What format do you need?
  1. Helpful
  1. Rishi Panthee
  2. Monday, 14 October 2024 17:43 PM UTC
We'll need the output in Markdown(https://en.wikipedia.org/wiki/Markdown).
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 14 October 2024 18:19 PM UTC
I wonder if something like this might work ...

https://github.com/mundimark/awesome-markdown-editors

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 October 2024 19:29 PM UTC
  2. PowerBuilder
  3. # 4

Hi Rishi ;

  FYI:  The new PB already has that: https://www.appeon.com/developers/pb2025-beta.html

Try it, you'll like it"!  ;-)

Regards .. Chris

Comment
  1. Rishi Panthee
  2. Friday, 11 October 2024 19:45 PM UTC
Thanks! Is there documentation for that(just the markdown viewer and WYSIWYG editor) ready or not yet?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 14 October 2024 23:17 PM UTC
  1. Helpful
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.