@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
60 lines (59 loc) • 2.35 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import type { CommentsConfig, AnnotationsSidebarConfig, Annotations, AnnotationsUIs, EditorAnnotations, InlineAnnotations, WideSidebar, NarrowSidebar, Comments, CommentsRepository, CommentsUI, CommentsOnly, CommentsArchive, CommentsArchiveUI } from './index.js';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the comments feature.
* Introduced by the {@link module:comments/comments~Comments} feature.
*
* Read more in {@link module:comments/config~CommentsConfig}.
*
* ```ts
* ClassicEditor
* .create( {
* comments: ... // Locale editor configuration.
* } )
* .then( ... )
* .catch( ... );
* ```
*
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
*/
comments?: CommentsConfig;
/**
* The configuration of the sidebar feature.
* Introduced by the {@link module:comments/annotations/sidebar~Sidebar} feature.
*/
sidebar?: AnnotationsSidebarConfig;
/**
* Enables {@link module:comments/commentsonly~CommentsOnly comments-only mode} when the editor initializes.
*
* ```ts
* ClassicEditor
* .create( {
* commentsOnly: true
* } )
* .then( ... )
* .catch( ... );
* ```
*/
commentsOnly?: boolean;
}
interface PluginsMap {
[]: Annotations;
[]: AnnotationsUIs;
[]: EditorAnnotations;
[]: InlineAnnotations;
[]: WideSidebar;
[]: NarrowSidebar;
[]: Comments;
[]: CommentsRepository;
[]: CommentsUI;
[]: CommentsOnly;
[]: CommentsArchive;
[]: CommentsArchiveUI;
}
}