ckeditor5-elements / ElementClipboard
Class: ElementClipboard
Registers clipboard commands that act on an element: copyElement, cutElement, pasteElement, pasteElementBefore and pasteElementAfter.
ts
await editor.execute('copyElement', element);The commands have titles and icons, so they can be menu items (e.g. in the elementContextMenu config of ElementContextMenu) and buttons. Copying and pasting go through the clipboard pipeline, as Ctrl+C and Ctrl+V do.
Extends
Constructors
Constructor
ts
new ElementClipboard(editor): ElementClipboard;Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
ElementClipboard
Inherit Doc
Inherited from
Plugin.constructor
Accessors
pluginName
Get Signature
ts
get static pluginName(): "ElementClipboard";Returns
"ElementClipboard"
requires
Get Signature
ts
get static requires(): readonly [typeof ClipboardPipeline, typeof Notification];Returns
readonly [typeof ClipboardPipeline, typeof Notification]
Methods
init()
ts
init(): void;Returns
void