Report an issue

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 based on such definition can be applied to and removed from the selection through various 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.