UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

37 lines (36 loc) 1.23 kB
/** * @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 PlaceholderableViewElement } from '@ckeditor/ckeditor5-engine'; declare const CommentEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("@ckeditor/ckeditor5-utils").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 {};