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