On Mon, 27 Oct 2025 19:04:16 GMT, Andy Goryachev <[email protected]> wrote:

> User feedback (see 
> https://mail.openjdk.org/pipermail/openjfx-discuss/2025-August/000267.html ):
> 
> 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.
> 
> Root cause: implementation bug.

The added test works fine, but I'm having some issues with getting this to work 
in RTA Demo.

I started RichEditorDemo from `apps/samples/RichTextAreaDemo` and this is the 
result I get when trying to add text at the end of bolded "testing" word:

<img width="457" height="324" alt="Image" 
src="https://github.com/user-attachments/assets/1bf8ce60-c86d-4f56-9ed4-66a8fead82bf";
 />

To be precise, the steps are:
1. Write "testing testing testing"
2. Mark the middle "testing" and use Ctrl+B to bold it
3. Click at the end of bolded "testing" word and start typing

I figured the "aaaaaaa" should be bolded, but it isn't. Is this the expected 
result?

What is even more interesting, is that I cannot un-bold the middle word after 
it became bolded. Hard to say why but it doesn't happen on master. I also 
noticed the "B" bolding button in the UI does not highlight when you put the 
cursor in the middle of bolded text, which also works on master.

-------------

PR Review: https://git.openjdk.org/jfx/pull/1950#pullrequestreview-3394101023

Reply via email to