[Announcement] HTML Edit Desktop Update 1.9

Hello everyone!
Some updates for HTML Edit today! New features, bug fixes, and the discovery of how difficult Windows is!

Insert Links
Now accompanying the ability to insert images is a built in function to insert links. After discovering how hard it was to ensure the link ended up in the same place both in text and HTML, I decided it was prudent to have an insert link function. Now the link will end up exactly where you want it. It’s as easy as InsertLink("http://url", "Link Title")

Visual Cue for Enabled: False
On Mac there is now a visual cue (the control becomes faded) for when HTML Edit is disabled by setting the Enabled property to false. Due to several Windows issues, this function (and the Enabled setting in general) is not available in Windows. More details are below.

Literal Characters
Thanks to the new users from the latest bundle it was discovered that the JavaScript literals were not being handled appropriately! Version 1.9 corrects this issue; now \ , \\r, and \\t are no longer lost when setting and getting HTML content.

Full Changes

  • InsertLink()

  • , \r, \t are no longer converted into JavaScript characters
  • Visual cue for when the control is disabled (Mac only)
  • Added protection against a JavaScript execution error
  • Fixes rare paste issue on Windows

The Windows Effect
I spent a lot of time to try to get Windows to behave, but ultimately it just won’t. The Enabled setting on Windows has no effect if you use the “WebKit” (read: Chromium Embedded Framework) renderer setting. Unfortunately there is nothing I can do about this. File a feedback request asking for an update to the Chromium Embedded Framework to encourage Xojo to bring it up to date.

To try to mitigate the issue if you set the renderer of the HTML Viewer instance to “Native” then HTML Edit will use the Windows Registry Keys for using a more modern rendering engine (IE11.) Using the “Native” renderer the control is able to use the Enabled property, however there are issues with word wrapping. I decided that was too flaky to use and left the Renderer default to “WebKit.”

I leave this choice to you the developer, feel free to experiment with the HTML Viewer instance’s Renderer setting in the IDE and select the one with results you prefer. Then remember to file a feedback request asking for an update to the Chromium Embedded Framework to encourage Xojo to bring it up to date. (Yes, I intentionally said this twice)

Try It Out!
Give the demo a try! It’s fully functional in debug mode. To build or deploy, purchase a license for $79

About HTML Edit
HTML Edit is a drop in control that helps desktop developers get and set HTML for WYSIWYG Rich Text editing. This Xojo wrapper / translator harnesses the power of Quill. You can slam complex markup at the control and it will render quickly, and display just as the markup would in a browser. To make things easy it mimics much of the functionality of a TextArea, so you already know how to use it. HTML Edit lets you use native Xojo code to control the Quill editor, so you’re working with strings, booleans, and colors - instead of sorting out JavaScript errors.

Product Page: http://htmledit.timi.me/
Download Demo: http://htmledit.timi.me/demo
Docs: http://htmledit.timi.me/docs.html