UNPKG

@ckeditor/ckeditor5-revision-history

Version:

Document revision history feature for CKEditor 5.

59 lines (58 loc) 1.88 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 revision-history/ui/revisionhistory/revisionhistorysaverevisionformview */ import { LabeledFieldView, View, type CssTransitionDisablerMixinConstructor, type InputTextView } from "@ckeditor/ckeditor5-ui"; import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils"; import "../../../theme/revisionhistorysaverevisionform.css"; declare const RevisionHistorySaveRevisionFormViewBase: CssTransitionDisablerMixinConstructor<typeof View>; /** * The media form view controller class. * * See {@link module:media-embed/ui/mediaformview~MediaFormView}. */ export declare class RevisionHistorySaveRevisionFormView extends RevisionHistorySaveRevisionFormViewBase { /** * Tracks information about the DOM focus in the form. */ readonly focusTracker: FocusTracker; /** * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}. */ readonly keystrokes: KeystrokeHandler; /** * The revision name input view. */ revisionNameInputView: LabeledFieldView<InputTextView>; /** * The value of the revision name input. * * @observable */ revisionNameInputValue: string; constructor(locale: Locale, requireRevisionName: boolean); /** * @inheritDoc */ override render(): void; /** * Focuses the {@link #revisionNameInputView}. */ focus(): void; /** * The native DOM `value` of the {@link #revisionNameInputView} element. * * **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value} * which works one way only and may not represent the actual state of the component in the DOM. */ get revisionName(): string; set revisionName(name: string); /** * TODO */ reset(): void; } export {};