릴리즈 3.3.0 이상
public setUserInfo({ id?: string; name?: string; color?: string; userData?: Object; })
에디터에서 사용할 사용자 정보를 지정하는 API 입니다.
Params: id, name, color, userData
| Name | Type | Description |
|---|---|---|
| id | string | 사용자 아이디 |
| name | string | 사용자 이름 |
| color | string | 사용자 표시 색상값 |
| userData | Object | 사용자와 관련된 추가 정보 |
Example:
window.editor.setUserInfo({
id: 'editor',
name: 'editor',
color:'#3C39B8',
userData: {
userId: 'userId', // ex) 사용자 식별자
connected: Date.now(), // ex) 사용자 접속 시간 정보
profileImage:'/img/path.png' // ex) 사용자 프로필 이미지 URL
}
})