@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
31 lines (30 loc) • 1.55 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import type { RevisionHistory, RevisionHistoryConfig, RevisionsRepository, RevisionHistoryUtils, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index.js';
declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig {
/**
* The configuration of the revision history feature.
* Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
*/
revisionHistory?: RevisionHistoryConfig;
}
interface PluginsMap {
[]: RevisionHistory;
[]: RevisionsRepository;
[]: RevisionHistoryUtils;
[]: RevisionViewerLoadingOverlay;
[]: RevisionHistoryUI;
[]: RevisionTracker;
[]: RevisionViewer;
[]: RevisionsSidebar;
[]: RevisionViewerUI;
}
interface CommandsMap {
restoreRevision: RestoreRevisionCommand;
showPreviousChange: ShowChangeCommand<'backward'>;
showNextChange: ShowChangeCommand<'forward'>;
}
}