ElementDefinition (engine/view)
@ckeditor/ckeditor5-engine/src/view/elementdefinition
A plain object that describes a view element in a way that a concrete, exact view element could be created from that description.
Above describes a view element:
An example with styles and attributes:
Describes:
Elements without attributes can be given simply as a string:
Which will be treated as:
Filtering
Properties
-
Object with key-value pairs representing attributes. Each object key represents attribute name. Value under that key must be a string.
-
Class name or array of class names to match. Each name can be provided in a form of string.
-
View element name.
-
Element's priority.
-
Object with key-value pairs representing styles. Each object key represents style name. Value under that key must be a string.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.