RichTextArea Inline Node Feedback
Kevin Rushforth
kevin.rushforth at oracle.com
Fri Oct 31 14:52:47 UTC 2025
> Otherwise there are just two bugs/issues that I encountered that I'll
> send separate emails for.
Thanks! Keep the bug reports and other feedback coming. They are very
much appreciated.
> I made a GitHub repository of my efforts to share with you for your
> reference in case you're interested. Feel free to copy/paste from it if
> you want.
Due to copyright and IP concerns, we cannot copy/paste code from
someone's GitHub repo. If you would like to contribute sample code or
show how we might modify JavaFX RichTextArea to solve a problem, you
could create a Draft PR under openjdk/jfx. You would need to sign the
OCA before we could take a look at it.
See the contributing guidelines [1] for more information.
Btw, the openjfx-dev mailing list is better for discussion of specific
features like RichTextArea. (the -discuss alias is meant for general
discussion of roadmap not for bugs or development)
Thank you.
-- Kevin
[1]
https://github.com/openjdk/jfx/blob/master/CONTRIBUTING.md#before-submitting-a-pull-request
On 10/31/2025 4:28 AM, Jurgen Doll wrote:
> Hi Andy
>
> With regards to handling custom objects / inline nodes in RichTextArea,
> I implemented two different models to test.
>
> The one was by extending BasicTextModel and implementing my own custom
> Content class for it. While with the other, I took your RichTextModel
> and modified it to be able to handle objects implementing Supplier<Node>.
>
> For each of these I extended RichTextArea in order to add additional API
> to be able to append, insert, and replace custom objects.
>
> Both of these approaches generally worked fine with regards to editing
> and navigation. (Note I didn't handle any styling for the custom nodes
> through the API.)
>
> As expected though paste and undo/redo don't work due to
> StyledTextModel's final replace method not handling INLINE_NODE's as
> we've noted before.
>
> Otherwise there are just two bugs/issues that I encountered that I'll
> send separate emails for.
>
> I made a GitHub repository of my efforts to share with you for your
> reference in case you're interested. Feel free to copy/paste from it if
> you want.
>
> https://github.com/Jugen/RichTextAreaTest
>
> Thanks, regards
> Jurgen
>
More information about the openjfx-discuss
mailing list