Open kotlinc0der opened 1 month ago
Thanks for reporting this. I will check it.
Currently spaces are being ignored because that's the expected behavior of HTML, but you are right the spaces from the editor shouldn't be ignored. I will be changing spaces to
when converting rich text to HTML.
I have a RichText component acting as a preview for a RichTextEditor.
There are 3 issues:
when saving changes in RichTextEditor and passing it to the RichText, the encode function called when setHTML is used remove all leading spaces in a paragraph.
calling tab reflects as a single space in the RichTextEditor. I can probably detect the tab insert and replace it with 4 spaces; it's still a minor bug.
using ParagraphStyle with TextIndent allows you to define the indent for the first line and the rest of the lines; but the html accounts only for the first indent so if you save the html text and load it again the text indent of the first line will apply to the entire paragraph.