arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.59k stars 280 forks source link

[Bug] Incorrect Caret Positioning in RTL #2544

Open MohammedInTheCloud opened 3 weeks ago

MohammedInTheCloud commented 3 weeks ago

image

How to fix it ? I attempted to use CSS, but it was unsuccessful.

When entering text in RTL , the caret position is incorrectly aligned to the right side of the input field. The expected behavior in RTL is for the caret to appear on the left side, following the natural RTL text flow.

This affects writing; for instance, I cannot add a minus sign as it will appear at the beginning of the text.

arnog commented 2 weeks ago

I don't know how to reproduce this, and therefore can't debug it. When you say "attempted to use CSS", what do you mean? Which CSS? Note that in general the mathfield does not support RTL layout.