InlineStyleDefinition
interface
Style definition.
An object describing a style definition. It contains the style name, element name and an array of CSS classes.
// This style will create <h2 class="foo">...</h2> in the document data.
{
name: 'Example style',
element: 'h2',
classes: [ 'foo' ]
}
Copy code
Properties
-
classes : Array<string>inheritedmodule:style/styleutils~InlineStyleDefinition#classes -
element : stringinheritedmodule:style/styleutils~InlineStyleDefinition#element -
ghsAttributes : Array<string>module:style/styleutils~InlineStyleDefinition#ghsAttributes -
name : stringinheritedmodule:style/styleutils~InlineStyleDefinition#name -
module:style/styleutils~InlineStyleDefinition#previewTemplate