Open abisar opened 2 years ago
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.
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](https://user-images.githubusercontent.com/18389149/178523370-14351183-7d97-42a4-8123-53eab3e3c071.gif)
I tried to change
updateCursorPos
internally but didn't get anywhere. How can I change thecursorSide
in tiptap2? I'm using the example from here.