You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: