CKEditor 4 reached its End of Life (EOL) in June 2023. From then on, it will receive no more updates, new features, bug fixes, and security patches. Visit CKEditor 5 Docs for the actively supported CKEditor or check Extended Support Model.
Report an issue
Class

CKEDITOR.style.definition

class inherited abstract

Abstract class describing the definition of a style.

This virtual class illustrates the properties that developers can use to define and create style definitions.

A style definition object represents a style as a set of properties defining the element structure, its attributes and CSS styles. The CKEDITOR.style based on such definition can be applied to and removed from the selection through various CKEDITOR.style methods.

{
    name: 'Special Title',
    element: 'h1',
    attributes: { class: 'my_class' },
    styles: { color: 'red', 'font-size': '16px', 'font-width': 'bold' }
}

Refer to the Styles guide for more information about how editor content styles are handled.

Filtering