协作者展示
实现标记协作者的插件,用来配合协作者通信通用模块一起使用。
构造函数
用法
var editor = new window.shimo.sdk.slide.Editor() // 渲染协作者标记插件 var collaborators = new window.shimo.sdk.slide.plugins.Collaborators({ editor, currentUserId: <当前编辑文档的用户id>, }) // 传入协作模块
示例代码请参考【通用协作模块】
参数
名称 | 类型 | 描述 |
---|---|---|
options.editor | Editor | 编辑器的实例 |
options.currentUserId | string | 当前用户id |
析构函数
用法
collaborator.destroy() collaboratorEditor.destroy() editor.destroy()