Dear Pavel: I invite you to look at the advance preview of the new attributes added to the RichTextArea - embedded images, text highlights, and wavy underlines. The last two are CSS-configurable as you requested.
https://github.com/andy-goryachev-oracle/jfx/pull/19 Please let me know what you think. Thanks, -andy From: openjfx-dev <[email protected]> on behalf of PavelTurk <[email protected]> Date: Monday, May 12, 2025 at 10:31 To: [email protected] <[email protected]> Subject: Re: RFR: 8355774: RichTextArea: provide mechanism for CSS styling of highlights Andy, thank you for your time and the detailed discussion. I'm sure it was very helpful. That's why I just opened a new issue with ID: 9078500. Best regards, Pavel On 5/12/25 19:58, Andy Goryachev wrote: JDK-8355774 adds methods to style highlights added via addHighlight() with CSS. What (I think) you want is an ability to style a single text segment with (background | underlines | etc) attributes, which is still debatable - because you already can do all that, albeit with some additional code. The addHighlight() is more flexible, as it allows to style not only the segment being added, but also multiple segments of parts of segments. So, in effect, the existing APIs (plus JDK-8355774) allow you address your requirements. Or is there something you that is still impossible to do? -andy
