SuggestionDescription
interface
A description for the suggestion.
{
type: 'format',
label: '*Set format:* bold'
}
Copy code
A description for the color-related suggestions like font color may specify the color property that will provide a better UX by displaying a color box next to the suggestion.
{
type: 'format',
label: '*Set font color:*',
color: {
value: 'hsl( 60, 60%, 60% )',
title: 'yellow'
}
}
Copy code
Properties
color : object | undefinedmodule:track-changes/suggestiondescriptionfactory~SuggestionDescription#colorThe optional
colorproperty used for color-related suggestions. The object should provide thevalue(for displaying the color) andtitle(for describing the color) fields.content : stringmodule:track-changes/suggestiondescriptionfactory~SuggestionDescription#contentDescription label. You may use
*to bold part of the label.type : 'replace' | 'format' | 'insertion' | 'deletion'module:track-changes/suggestiondescriptionfactory~SuggestionDescription#type