MohamedRejeb / compose-rich-editor

A Rich text editor library for both Jetpack Compose and Compose Multiplatform, fully customizable, supports HTML and Markdown.
https://mohamedrejeb.github.io/compose-rich-editor/
Apache License 2.0
1.17k stars 76 forks source link

RichTextState with setHtml removes spaces between words #391

Open mianaliasjad opened 1 month ago

mianaliasjad commented 1 month ago

First, write two words with one space between them then make each word bold separately. Then get the html from state which would be <p><b>hello</b> <b>world</b></p>

now richTextState.setHtml("<p><b>hello</b> <b>world</b></p>") and the resulting text that shows in OutlinedRichTextEditor would have no space between two wrods.

https://github.com/user-attachments/assets/c1264700-8721-4af5-84f2-315567d0e597

mianaliasjad commented 1 month ago

perform any editing style separately on two words the issue will be the same as above. So its not just limited to bold only.

ViktorMorgachev commented 3 weeks ago

I have some problem

orkndev commented 2 weeks ago

@MohamedRejeb same problem

MohamedRejeb commented 1 week ago

Thanks for opening this issue, I'm working on it.