Sign up (with export icon)

CaseChangeTitleCaseConfig

Api-interface icon interface

Title case configuration. It allows setting words that should not be capitalized when formatted as title case.

ClassicEditor
	.create( editorElement, {
		caseChange: {
			titleCase {
				excludeWords: [ 'a', 'an', 'the' ]
			}
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
Copy code
ClassicEditor
	.create( editorElement, {
		caseChange: {
			titleCase {
				excludeWords: ( word ) => [ 'a', 'an', 'the' ].includes( word )
			}
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
Copy code
ClassicEditor
	.create( editorElement, {
		caseChange: {
			titleCase {
				excludeWords: ( word, { wordIndex } ) => wordIndex > 0 && [ 'a', 'an', 'the' ].includes( word )
			}
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
Copy code

See all editor options.

Properties