CollaborationUsersConfig
 interface
The configuration of the Users features.
ClassicEditor
	.create( {
		users: ... // Users configuration.
	} )
	.then( ... )
	.catch( ... );
Copy code
See all editor options.
Properties
anonymousUserId : string | undefinedmodule:collaboration-core/config~CollaborationUsersConfig#anonymousUserIdUser ID value that will be used for the anonymous user.
colorsCount : number | undefinedmodule:collaboration-core/config~CollaborationUsersConfig#colorsCountNumber of defined colors that are randomly assigned to users.
getInitialsCallback : ( name: string ) => string | undefinedmodule:collaboration-core/config~CollaborationUsersConfig#getInitialsCallbackA callback function that customizes the way user initials are generated.
If provided, this function will be called with the user's full name as the argument, and it should return a string representing the user's initials.
Example usage:
ClassicEditor .create( { users: { getInitialsCallback: ( name: string ) => { // Custom logic to generate initials. return name.split( ' ' )[ 0 ].charAt( 0 ) + name.split( ' ' )[ 1 ].charAt( 0 ); } } } ) .then( ... ) .catch( ... );Copy code