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