Typedef

ElementDefinition (engine/view)

@ckeditor/ckeditor5-engine/src/view/elementdefinition

typedefstring | ElementObjectDefinition

A plain object that describes a view element or element name.

Elements without attributes can be given simply as a string:

const viewDefinition = 'p';

Which will be treated as:

const viewDefinition = {
	name: 'p'
};

Filtering