Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with caret position of math_inline in RTL #41

Open
abisar opened this issue Jul 12, 2022 · 1 comment
Open

Problem with caret position of math_inline in RTL #41

abisar opened this issue Jul 12, 2022 · 1 comment
Labels
help wanted Extra attention is needed rtl-support

Comments

@abisar
Copy link

abisar commented Jul 12, 2022

When the editor direction is rtl, caret position acts wrong in inline mode and makes it unusable. Pressing left arrow key (or right) doesn't work correctly and gets stuck in a loop. It's easy to reproduce:
tuy5y5y5y

I tried to change updateCursorPos internally but didn't get anywhere. How can I change the cursorSide in tiptap2? I'm using the example from here.

@benrbray
Copy link
Owner

Thank you for reporting! I believe there are a few factors at play here where LTR is hard-coded as an assumption. I may be able to fix this by having an RTL config flag, and reversing the relationship between document position and direction whenever the flag is set. I will see if a simple fix is possible.

@benrbray benrbray added help wanted Extra attention is needed rtl-support labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed rtl-support
Projects
None yet
Development

No branches or pull requests

2 participants