CaseChangeTitleCaseConfig
interface
Title case configuration. It allows setting words that should not be capitalized when formatted as title case.
ClassicEditor
.create( {
caseChange: {
titleCase {
excludeWords: [ 'a', 'an', 'the' ]
}
}
} )
.then( /* ... */ )
.catch( /* ... */ );Copy codeClassicEditor
.create( {
caseChange: {
titleCase {
excludeWords: ( word ) => [ 'a', 'an', 'the' ].includes( word )
}
}
} )
.then( /* ... */ )
.catch( /* ... */ );Copy codeClassicEditor
.create( {
caseChange: {
titleCase {
excludeWords: ( word, { wordIndex } ) => wordIndex > 0 && [ 'a', 'an', 'the' ].includes( word )
}
}
} )
.then( /* ... */ )
.catch( /* ... */ );Copy codeSee all editor options.
Properties
excludeWords?: Array<string> | CaseChangeExcludeWordsCallbackmodule:case-change/casechange~CaseChangeTitleCaseConfig#excludeWordsWords which should not be capitalized.