@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
37 lines (36 loc) • 1.22 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 comments/comments/ui/commenteditor/commenteditor
*/
import { Editor, type EditorConfig } from 'ckeditor5/src/core.js';
import { CommentEditorUI } from './commenteditorui.js';
import { type PlaceholderableViewElement } from 'ckeditor5/src/engine.js';
declare const CommentEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/utils.js").Observable>;
export declare class CommentEditor extends /* #__PURE__ -- @preserve */ CommentEditor_base {
static defaultPlugins: EditorConfig['plugins'];
/**
* The input placeholder.
*
* @observable
*/
placeholder: string;
placeholderElement: PlaceholderableViewElement | undefined;
ui: CommentEditorUI;
/**
* @inheritDoc
*/
constructor(config?: EditorConfig);
create(): Promise<unknown>;
/**
* @inheritDoc
*/
destroy(): Promise<void>;
/**
* Place the selection at the end of the editor data and focus the editable.
*/
focus(): void;
}
export {};