RevisionHistoryConfig (revision-history)
@ckeditor/ckeditor5-revision-history/src/revisionhistory
The configuration of the revision history feature.
ClassicEditor
.create( {
revisionHistory: ... // Revision history feature configuration.
} )
.then( ... )
.catch( ... );
See all editor options.
Filtering
Properties
-
editorContainer : HTMLElement
module:revision-history/revisionhistory~RevisionHistoryConfig#editorContainer
The DOM element that contains the DOM structure for the editor.
This element will be hidden when the user opens the revision history.
-
resumeUnsavedRevision : Boolean
module:revision-history/revisionhistory~RevisionHistoryConfig#resumeUnsavedRevision
Tells the feature whether it should resume updating previously unsaved revision or should save the previously unsaved revision and create a new revision for the changes that will be introduced after the editor is initialized.
By default, the previously unsaved revision is resumed after the editor is initialized.
Note that only unsaved revision can be resumed.
Note that for real-time collaboration, the unsaved revision will be always resumed if the real-time editing session is still active. In other words, even if this is set to
false
, the unsaved revision will be resumed, if the editing session did not end since the editor was re-initialized. Keep in mind that the editing session is active a long time after the last user leaves the document. -
viewerContainer : HTMLElement
module:revision-history/revisionhistory~RevisionHistoryConfig#viewerContainer
DOM element which contains the DOM structure for revision history viewer.
This element should be hidden (using CSS) when the editor is initialized. This element will be shown when the user opens the revision history viewer.
-
viewerEditorElement : HTMLElement
module:revision-history/revisionhistory~RevisionHistoryConfig#viewerEditorElement
The DOM element for the revision history viewer editor instance.
This element will be used to initialize the revision history viewer editor instance and will be replaced by it. It should be empty.
-
viewerSidebarContainer : HTMLElement
module:revision-history/revisionhistory~RevisionHistoryConfig#viewerSidebarContainer
The DOM element for the revision history viewer sidebar container.
This element will be used as a container for the revision history viewer. The sidebar content will be inserted into it.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.