I'm working on a real-time collaborative editor within Ace editor, and I couldn't find any docs on inserting text at a certain position within the editor (Aka, the position the other user types at.) Any ideas?
To insert at current position you can use ( assuming that might be what you are looking for )
editor.session.insert(editor.getCursorPosition(), text)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With