ListPropertiesConfig
The configuration of the list properties feature and the legacy list properties feature.
This configuration controls the individual list properties. For instance, it enables or disables specific editor commands operating on lists ('listStyle', 'listStart', 'listReversed', or on the legacy lists 'listStyle', 'listStart', 'listReversed'), the look of the UI ('numberedList' and 'bulletedList' dropdowns), and the editor data pipeline (allowed HTML attributes).
ClassicEditor
.create( editorElement, {
list: {
properties: {
styles: true,
startIndex: true,
reversed: true
}
}
} )
.then( ... )
.catch( ... );
Properties
reversed : boolean | undefinedmodule:list/listconfig~ListPropertiesConfig#reversedWhen set, the reversed list feature will be enabled. It allows changing the
reversedHTML attribute of the numbered lists. As a result, it will be possible to make the list order descending instead of ascending.Note: This configuration does not affect bulleted and to-do lists.
Defaults to
falsestartIndex : boolean | undefinedmodule:list/listconfig~ListPropertiesConfig#startIndexWhen set, the list start index feature will be enabled. It allows changing the
startHTML attribute of the numbered lists. As a result, it will be possible to specify the start value of the first item in an ordered list.Note: This configuration does not affect bulleted and to-do lists.
Defaults to
falsestyles : boolean | ListPropertiesStyleConfig | ArrayOrItem<ListPropertiesStyleListType> | undefinedmodule:list/listconfig~ListPropertiesConfig#stylesWhen set, the list style feature will be enabled. It allows changing the
list-style-typestyle or thetypeHTML attribute of a list.Note: Styling using the
typeHTML attribute is only available in list properties (learn more).Defaults to
true