<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);">
Thanks again for the feedback, here are the new JBS tickets:</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 style="margin-right: 0px; margin-left: 0px; font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="line-height: normal;"><u><a href="https://bugs.openjdk.org/browse/JDK-8366198" data-outlook-id="b692167a-d028-4fe8-9d05-23dfbf8274c1">JDK-8366198</a></u></span> RichTextArea: consider new attributes in StyleAttributeMap (INLINE_STYLE, STYLE_NAMES,
 TEXT_HIGHLIGHT, and WAVY_UNDERLINE)</div>
<div style="margin-right: 0px; margin-left: 0px; font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="line-height: normal;"><u><a href="https://bugs.openjdk.org/browse/JDK-8366201" data-outlook-id="f50932c1-f739-4800-a450-0fc18f9491e3">JDK-8366201</a></u></span> RichTextArea: add undo parameter to applyStyle/setStyle</div>
<p style="line-height: normal; margin: 0px; font-family: "Iosevka Fixed SS16", Arial, Helvetica, sans-serif;">
<span style="font-size: 12pt; color: rgb(0, 0, 0); line-height: normal;"><u><a href="https://bugs.openjdk.org/browse/JDK-8366202" data-outlook-id="d7cf01ec-eee6-499e-b346-9db3f0f36797" style="margin-top: 0px; margin-bottom: 0px;">JDK-8366202</a></u></span><span style="font-size: 12pt; color: rgb(0, 0, 0);"> RichTextArea:
 wrong style used for typed text</span></p>
<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; color: rgb(0, 0, 0);">
<span style="font-size: 12pt;">Question - what exactly do you mean by </span><span style="font-size: 16px; background-color: rgb(255, 255, 255);">INLINE_STYLE?</span></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);"><br>
</span></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);">I assume STYLE_NAMES are basically the public equivalent of CssStyles.CSS (which I decided to hide as an implementation detail in the first iteration)?</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);">
Thanks!</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;">
<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>