red-axe / am-editor

A rich text editor that supports collaborative editing and allows for the free use of front-end common libraries such as React and Vue to extend and define plugins.
https://editor.aomao.com
MIT License
937 stars 196 forks source link

如何对加入文档的协作者进行限制? #365

Open smallCF opened 7 months ago

smallCF commented 7 months ago

如何对加入文档的协作者进行限制? 例如我有一篇文章:A用户在一个浏览器打开了2个窗口,进行编辑,如何只显示一个光标或者不进行协同

big-camel commented 7 months ago

handleCursorChange 不就可以取到当前所有的协作者吗?然后你判断一下不就只显示一个吗

同理,在服务端想办法获取到当前所有用户然后检测不给连接也行

代码都是开源的可以复制下来改,解决需求就行

Message ID: @.***>

smallCF commented 7 months ago

好的,我去梳理一下