There is a critical bug in the bidirectional text editing in which once you type or paste a left-to-right text in the right-to-left context or a right-to-left text in a left-to-right context the text is typed well but it cannot be edited correctly later.
Steps to produce:
1.write some left-to-right text(such as English)
2.change the window direction to the reverse direction of the text (in this case right-to-left)
3.try to select or edit the text.
(4).this can be done for a right-to-left text(such as Arabic) in the same way
the editing does not occur in the visually shown place but its reverse position.
This really hinders the text editing in the bidirectional contexts and requires the user to either completely delete the phrase and retype it again, or copy that text to other text editors and after editing, replace it with the original text.
A test case is provided with details in it.