Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

릴리즈 3.3.0 이상

public setUserInfo({ id?: string; name?: string; color?: string; userData?: Object; })

에디터에서 사용할 사용자 정보를 지정하는 API 입니다.


Params: id, name, color, userData

NameTypeDescription
idstring사용자 아이디
namestring사용자 이름
colorstring사용자 표시 색상값
userDataObject사용자와 관련된 추가 정보

Example:

window.editor.setUserInfo({
    id: 'editor',
    name: 'editor',
    color:'#3C39B8',
    userData: {
        userId: 'userId',            // ex) 사용자 식별자
		connected: Date.now()        // ex) 사용자 접속 시간 정보
        profileImage:'/img/path.png' // ex) 사용자 프로필 이미지 URL
    }
})
  • No labels