RtcPresenceListConfig
The configuration of the real-time collaboration features.
ClassicEditor
.create( {
presenceList: ... // Collaboration presence list configuration.
} )
.then( ... )
.catch( ... );Copy codeSee all editor options.
Properties
collapseAt?: numbermodule:real-time-collaboration/config~RtcPresenceListConfig#collapseAtIndicates a number of displayed users at which the presence list will switch to a dropdown view. If the number is 8, then 7 users will still be displayed inline, while 8+ users will be displayed in the dropdown.
The number must be greater than
0.Defaults to
6container?: HTMLElementmodule:real-time-collaboration/config~RtcPresenceListConfig#containerDOM element that will hold the feature’s UI.
displayMe?: booleanmodule:real-time-collaboration/config~RtcPresenceListConfig#displayMeDetermines if the local user avatar should be displayed in the presence list (
true) or not (false).Defaults to
trueonClick?: ( user: User, element: HTMLElement ) => voidmodule:real-time-collaboration/config~RtcPresenceListConfig#onClickCallback function that will be invoked after a click on a presence list member.
overlayContainer?: ShadowRoot | HTMLElementmodule:real-time-collaboration/config~RtcPresenceListConfig#overlayContainerDOM element or shadow root into which the floating presence list dropdown is mounted.
When the presence list runs inside a shadow root, provide this container as a separate shadow root attached to a host element placed at the end of
document.body, rather than to an element nested in the presence list's own tree. As a direct child ofdocument.body, that host has no scrollable oroverflow: hiddenancestor to clip the dropdown (thecontainertypically clips its own overflow).When it is not set, the shared
ui.overlayContainerfrom the context configuration is used instead, if present. Otherwise the dropdown is mounted into the shadow root that thecontainerlives in, so it inherits the same styles; thedocument.bodydefault is meant just for a presence list in the light DOM.