Provides methods to access the components schema
Creates new instance of API
The schema API
Gets default data for a component
The component name
The default data
const modelData = editor.schema.components.getDefaultData('model'); Copy
const modelData = editor.schema.components.getDefaultData('model');
Gets a list of fields of a particular type for a component
The desired type
A list of fields
const buttonEntityFields = editor.schema.components.getFieldsOfType('button', 'entity'); Copy
const buttonEntityFields = editor.schema.components.getFieldsOfType('button', 'entity');
Gets a list of all the available components
The components
Provides methods to access the components schema