TrackChangesConfig (track-changes)
@ckeditor/ckeditor5-track-changes/src/trackchangesconfig
The configuration of the track changes feature.
Example:
ClassicEditor
.create( {
// Track changes feature configuration.
trackChanges: {
// Do not allow users to comment suggestions (default is `false`).
disableComments: true,
// Do not track styling and formatting changes (default is `default`).
trackFormatChanges: 'never',
// Merges suggestion changes inside a block. (default is `true`).
mergeNestedSuggestions: true
}
} )
.then( ... )
.catch( ... );
See all editor options.
Filtering
Properties
-
SuggestionThreadView : default | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionThreadView
A view class to be used to create suggestion thread views.
SuggestionThreadView
is used by default when this property is not set. -
SuggestionView : default | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#SuggestionView
A view class to be used to create the suggestion view.
SuggestionView
is used by default when this property is not set. -
disableComments : boolean | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#disableComments
A property that specifies if the comments for suggestions are enabled or disabled. When the option is set to
true
, the comment thread UI for suggestions will be hidden and commenting suggestions will be disabled.Suggestion thread views will be marked with the additional
ck-suggestion--disabled-comments
class when the suggestion comments are disabled.Defaults to
false
-
mergeNestedSuggestions : boolean | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#mergeNestedSuggestions
Specifies whether suggestions on an object (e.g. image, table) should be automatically merged with suggestions inside the object (e.g. image caption, table cell).
For example, when set to
true
, creating a table and writing some text inside the table will result in one suggestion. When set tofalse
, it will be two separate suggestions, one for the inserted table and one for the inserted text.Keep in mind that only suggestions from the same author and of the same type are merged this way.
Defaults to
true
-
preview : TrackChangesPreviewConfig | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#preview
Configuration of the track changes preview feature.
-
trackFormatChanges : 'default' | 'always' | 'never' | undefined
module:track-changes/trackchangesconfig~TrackChangesConfig#trackFormatChanges
A property that specifies whether formatting changes should be tracked.
Formatting changes are all changes other than insertions and deletions, including: styling, structure, widgets properties, etc.
By default, formatting changes are tracked. However, if you make a formatting change inside your own insertion suggestion, it is immediately applied, without creating a suggestion.
Possible values are:
'default'
- format changes are tracked, but when made inside your own insertion suggestion, they will be immediately applied.'always'
- format changes will always be tracked, even inside your own insertion suggestion.'never'
- format changes will never be tracked (suggestions for such changes will not be created).
Defaults to
'default'
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.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features. We appreciate your feedback to help us ensure its accuracy and completeness.