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

Multiple cursors and selections for collab OT editing? #340

Closed
ghost opened this issue Jul 11, 2011 · 3 comments
Closed

Multiple cursors and selections for collab OT editing? #340

ghost opened this issue Jul 11, 2011 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 11, 2011

I'm currently using ace to make a collaborative wiki editor using jinfinote and py-infinote. I was wondering whether ace could support multiple cursors and selections, so the editing experience gets more interactive.
@Gissues:{"order":62.732919254658555,"status":"backlog"}

@fjakobs
Copy link
Contributor

fjakobs commented Jul 20, 2011

This is already possible with markers. I will write a small example of how to do it. Check the addMarker API https://github.com/ajaxorg/ace/blob/master/lib/ace/edit_session.js#L316. Make sure to set 'front' to 'true' and as type you can pass in a function, which generates the markup for the marker.

@ghost
Copy link
Author

ghost commented Jul 20, 2011

Thanks, i succesfully added somewhat of a remote cursor(still bit buggy, but ill try to improve that later) using addMarker. Source is at http://hwios.org/media/scripts/lib/jquery/jquery.jinfinote.js . Only problem i seem to have is that it won't render on the current line marker. Any idea if that has to do with the order of rendering?

collab ace editor for hwios can be found at http://hwios.org/hyki/main/edit/ . Needs to be logged in to change anything to the server document though.

@gjtorikian
Copy link
Contributor

Multiple cursors is in Ace, as of maybe two months ago. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants