Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/editors/slate/cursors/index.ts
1697 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
/*
7
- Display of other user's cursors
8
- Broadcast of own cursor.
9
10
One complication is that there's both a plain source code
11
view and an editable view, and clients could be using either,
12
so we want to show cursors in both places.
13
14
TODO:
15
16
- [ ] display cursors in slate editor (not just source)
17
- [ ] a way to display them
18
- [ ] convert coordinates from markdown to slate
19
- will also be useful for implementing forward search
20
21
- [ ] special cases for working with void elements
22
- [ ] code blocks
23
- [ ] checkboxes
24
- [ ] images, etc?
25
*/
26
27
export * from "./broadcast";
28
export * from "./other-users";
29
30