RichTextFX icon indicating copy to clipboard operation
RichTextFX copied to clipboard

Question: When I call the codeArea.replaceText() method, the styling is scrambled

Open ThisOldDog opened this issue 1 year ago • 0 comments

Description

I'm working on a simple Markdown editor, but when I call codeArea.replaceText(0, 0, text) when opening a document, I find that the editor's styling is scrambled. Just like this:

动画

When I removed the codeArea.replaceText(0, 0, text) method, the problem didn't occur.

动画1

Environment info:

  • RichTextFX Version: 0.11.0
  • Operating System: Windows 11
  • Java version: 11

I'm a beginner in JavaFX and can't find the specific reason yet, sorry.

ThisOldDog avatar Apr 03 '23 12:04 ThisOldDog