Bug: Text direction bug when paragraph starts with a marknode #7021
Labels
marks
@lexical/mark, comments, annotations
text direction
Related to bidirectional text input (rtl, ltr)
The text direction (ltr vs rtl) of a paragraph is usually determined by the first letter of the paragraph. However if the first part of the paragraph including the first letter is wrapped in a marknode for commenting, the text direction is set without considering the text inside the marknode.
Lexical version:
Steps To Reproduce
The expected behavior
The text direction should not be changed when the starting text is wrapped in a marknode.
The text was updated successfully, but these errors were encountered: