@ckeditor/ckeditor5-real-time-collaboration
Version:
A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.
52 lines (51 loc) • 1.5 kB
TypeScript
/**
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* @module real-time-collaboration/realtimecollaborativeediting/usermarkers
*/
import { Plugin } from '@ckeditor/ckeditor5-core';
import { Sessions } from './sessions.js';
import '../../theme/usermarkers.css';
/**
* This plugin:
*
* 1. Creates marker operations with current user selection on demand.
* 2. Renders clients selection markers.
*
* This plugin does not create markers automatically, instead it provides an API for it {@link #createUserMarkerOperations}.
* {@link RealTimeCollaborationClient} uses this API to create user selection operations in the most optimal moment
* (as the last operation in the operations package) - this is to reach the best compression result.
*/
export declare class UserMarkers extends Plugin {
/**
* @inheritDoc
*/
static get requires(): readonly [typeof Sessions];
/**
* @inheritDoc
*/
static get pluginName(): "UserMarkers";
/**
* @inheritDoc
*/
static get isOfficialPlugin(): true;
/**
* @inheritDoc
*/
static get isPremiumPlugin(): true;
/**
* @inheritDoc
*/
init(): void;
afterInit(): void;
/**
* @inheritDoc
*/
destroy(): void;
/**
* Creates marker operations with current user selection.
*/
createUserMarkerOperations(): void;
}