An array of model element names considered
as headings in the document outline.
The index of the heading in the array reflects the heading nesting level. It can be used e.g. for reducing
the number of visible headings.
ClassicEditor
.create( editorElement, {
plugins: [ DocumentOutline, /* ... */ ],
documentOutline: {
headings: [ 'heading1', 'heading2', /* ... */ ],
// ...
}
} )
.then( /* ... */ )
.catch( /* ... */ );
If this configuration is not defined, the feature will use the following defaults instead:
- If the Headings feature is loaded, it equals
- If the General HTML Support feature is loaded, it equals
[ 'htmlH1', 'htmlH2', 'htmlH3', 'htmlH4', 'htmlH5', 'htmlH6' ]
.
Note: The Headings feature takes precedence over the General HTML Support feature when
both are loaded.