Skip to content

ckeditor5-elements / ElementSchemaCommandDefinition

Interface: ElementSchemaCommandDefinition ​

An element of ElementSchemaCommands: its command and its button.

Properties ​

element? ​

ts
element?: string;

The model element: of the element schema, or of another plugin. Default: the name of the command.


icon? ​

ts
icon?: string;

The icon of the command and of its button (an SVG string), e.g. IconBold of CKEditor.


keystroke? ​

ts
keystroke?: string;

The keystroke that executes the command, e.g. 'Ctrl+B'.


title ​

ts
title: string;

The title of the command, and the label of its button, e.g. 'Bold'.