Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

StringIndexOutOfBoundsException #327

Closed
Onder7994 opened this issue Aug 16, 2024 · 1 comment · Fixed by #329
Closed

StringIndexOutOfBoundsException #327

Onder7994 opened this issue Aug 16, 2024 · 1 comment · Fixed by #329

Comments

@Onder7994
Copy link

Onder7994 commented Aug 16, 2024

Hello.
I'm catching a strange bug on my physical device
Model: Xiaomi redmi note 11 PRO.
HyperOS OS, Android 13 TKQ1.221114.001.

In my app I am using your text library, sometimes when I try to move to a new line this error occurs. I couldn't catch it on emulator in android studio.
photo_2024-08-16_23-08-55

I use state like in README

val richTextState = rememberRichTextState()

Most often I catch this bug after loading data from the database and opening the edit screen.
Before save formatted text I use
richTextState.toMarkdown() (or toHtml, it doesn't matter) After that I use richTextState.setMarkdown(htmlText)

@MohamedRejeb
Copy link
Owner

Thanks for reporting this issue, I'm checking it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants