ckeditor5-elements / ElementAttributes
Class: ElementAttributes
Registers the showElementAttributes command, which shows the attributes of an element, as key-value pairs, in a modal dialog.
ts
editor.commands.get('showElementAttributes').executeFor(element);The command has a title and an icon, so it can be a menu item (e.g. in the elementContextMenu config of ElementContextMenu), a toolbar button, or the callback of a clickable element (see ElementClickable).
Extends
Constructors
Constructor
ts
new ElementAttributes(editor): ElementAttributes;Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
ElementAttributes
Inherit Doc
Inherited from
Plugin.constructor
Accessors
pluginName
Get Signature
ts
get static pluginName(): "ElementAttributes";Returns
"ElementAttributes"
requires
Get Signature
ts
get static requires(): readonly [typeof Dialog];Returns
readonly [typeof Dialog]
Methods
init()
ts
init(): void;Returns
void