Interface

ListPropertiesStyleConfig (list)

@ckeditor/ckeditor5-list/src/listconfig

interface

Filtering

Properties

  • listTypes : ArrayOrItem<ListPropertiesStyleListType> | undefined

    Enable style feature for the given list type only.

    {
    	list: {
    		properties: {
    			styles: {
    				listTypes: 'numbered'
    			}
    
    			// ...
    		}
    	},
    
    	// ...
    }
    

    Note: This configuration works only with list properties.

    Defaults to ['bulleted','numbered']

  • useAttribute : boolean | undefined

    When set true, the list style feature will use the type attribute of <ul> and <ol> elements instead of the list-style-type style.

    {
    	list: {
    		properties: {
    			styles: {
    				useAttribute: true
    			},
    
    			// ...
    		}
    	},
    
    	// ...
    }
    

    Note: Due to limitations of HTML, the "Decimal with leading zero" style is impossible to set using the type attribute.

    Note: This configuration works only with list properties.

    Defaults to false