<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
Dear Jurgen:</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is great feedback, thank you very much - for the feedback and for the effort trying out RichTextArea!</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 16px; color: rgb(0, 0, 0);">
<span style="background-color: rgb(255, 255, 255);">Let me sort through all the suggestions and I'll respond later with the JBS tickets.</span></div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
For some reason, I could not see your message in the archives <a href="https://mail.openjdk.org/pipermail/openjfx-discuss/2025-August/date.html" data-outlook-id="d8d0994a-3990-4d32-bfdc-c5ede55dcee3">
https://mail.openjdk.org/pipermail/openjfx-discuss/2025-August/date.html</a></div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Let's see if this one makes it through.</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-andy</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div dir="ltr" style="font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div id="mail-editor-reference-message-container">
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"></div>
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>Jurgen Doll <jurgen@ivoryemr.co.za><br>
<b>Date: </b>Tuesday, August 26, 2025 at 08:06<br>
<b>To: </b>Andy Goryachev <andy.goryachev@oracle.com>, openjfx-discuss@openjdk.org <openjfx-discuss@openjdk.org><br>
<b>Subject: </b>[External] : RichTextArea styling feedback<br>
<br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Hi Andy</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">I've been looking at the RichTextArea incubator feature and am providing feedback wrt the styling aspect of it.</div>
<div class="ms-outlook-mobile-reference-message skipProofing">First off though, thank you for all the effort you have put into this so far and I'm looking forward to when this matures.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Some background: since I use the RichTextFX library in my real world application I wanted to see how easily I could refactor my application to use RichTextArea instead, and then provide you with
feedback. Here I'm focusing just on a simple editor control in my application that has some basic styling options (bold, italic, underline, and text color) available for the user while the editor indicates any misspelled words as they type with a wavy underline.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">I used a standard RichTextArea with its default RichTextModel and you'll be pleased to hear that without too much fuss I was able to read & write using StyledInput & StyledOutput, as well as convert
the styling options part of my text editor control. However styling for spellchecking didn't go as well.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">So based off my experience with trying various things I recommend the following API enhancements:</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<ol start="1">
<li>
<div class="ms-outlook-mobile-reference-message skipProofing">The following StyleAttributes should be added to StyleAttributeMap: INLINE_STYLE, STYLE_NAMES, TEXT_HIGHLIGHT, and WAVY_UNDERLINE. At the moment none of these are easily or directly available,
and I believe from a user perspective that they should be.</div>
</li><li>
<div class="ms-outlook-mobile-reference-message skipProofing">Consider splitting StyleAttributes into TextAttributes and ParagraphAttributes then INLINE_STYLE and STYLE_NAMES can appear in both. Possibly then also have a DecoratorAttribute if needed for TEXT_HIGHLIGHT
and WAVY_UNDERLINE, if that'll make implementation easier but it should I believe from a user perspective still go into/through StyleAttributeMap as all styling should preferably be in one place.</div>
</li><li>
<div class="ms-outlook-mobile-reference-message skipProofing">The methods applyStyle and setStyle in RichTextArea should have a boolean undo parameter like replaceText.</div>
</li></ol>
<div class="ms-outlook-mobile-reference-message skipProofing">There's also the following issue that I noticed. When typing text, in the middle of a sentence, to extend a word that's styled then the typed text is not being inserted using the styles of the preceding
text.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">There are some other obervations regarding other aspects of RichTextArea that I hope to give feedback on soon as well.</div>
<div dir="ltr" class="ms-outlook-mobile-reference-message skipProofing"><br>
</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Thanks again, regards</div>
<div class="ms-outlook-mobile-reference-message skipProofing">Jurgen</div>
</div>
</body>
</html>