@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
31 lines (30 loc) • 1.14 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 revision-history/ui/revision/revisionnameview
*/
import { LabeledFieldView, type InputTextView } from "@ckeditor/ckeditor5-ui";
import { type Locale } from "@ckeditor/ckeditor5-utils";
import "../../../theme/revision/revisionname.css";
export declare class RevisionNameView extends LabeledFieldView<InputTextView> {
/**
* @inheritDoc
*/
constructor(locale: Locale, viewCreator: (labeledFieldView: LabeledFieldView, viewUid: string, statusUid: string) => InputTextView);
/**
* Renders the view and creates binding for tooltip. It's only displayed if the revision name is longer
* than the container. There are two different scenarios this may happen:
*
* * while resizing the container,
* * while changing the revision name.
*
* Hence, two different bindings are created: one using the `ResizeObserver` and the other using the input `value` property.
*/
override render(): void;
/**
* @inheritDoc
*/
override destroy(): void;
}