Users (collaboration-core)
@ckeditor/ckeditor5-collaboration-core/src/users
The Users
plugin provides the basic interface for setting and getting users involved in the document editing process.
Filtering
Properties
-
A reference to the local user or
null
if it has not been set.
Methods
-
constructor()
module:collaboration-core/users~Users#constructor
-
Adds a new user to the list of users.
-
defineMe( userId )
module:collaboration-core/users~Users#defineMe
Sets the user with the given ID as the local user (
me
).The local user can be only set once (this includes setting anonymous as the local user).
Parameters
userId : String
-
getOperationAuthor( operation ) → User
module:collaboration-core/users~Users#getOperationAuthor
-
Returns the user with a given ID.
-
useAnonymousUser()
module:collaboration-core/users~Users#useAnonymousUser
Sets an anonymous user as
me
.The user's ID will be set to the value of
config.users.anonymousUserId
property.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.