securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.02k stars 603 forks source link

Cursor position stays the same between different editor instances #1828

Open MaruBlare opened 1 year ago

MaruBlare commented 1 year ago

Problem

We have one component, which renders several tabs with editors, each with its own value (we use Link from react-router-dom to switch between tabs). The problem is that the cursor position stays the same between different editor instances (you can see it in the attached video). https://github.com/securingsincity/react-ace/assets/29026396/fb888683-c527-4875-bbdc-db6452b35e95

We want to keep different cursor positions, unique for each tab. I don't understand how to resolve our problem. Could you please help us?