RichTextFX
RichTextFX copied to clipboard
Question: When I call the codeArea.replaceText() method, the styling is scrambled
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.
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.