<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [on('editor-paste')](Workspace/on('editor-paste').md)
## Workspace.on('editor-paste') method
Triggered when the editor receives a paste event. Check for `evt.defaultPrevented` before attempting to handle this event, and return if it has been already handled. Use `evt.preventDefault()` to indicate that you've handled the event.
1.1.0
**Signature:**
```typescript
on(name: 'editor-paste', callback: (evt: ClipboardEvent, editor: Editor, info: MarkdownView | MarkdownFileInfo) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'editor-paste'</code> | |
| <code>callback</code> | <code>(evt: </code><code>ClipboardEvent</code><code>, editor: </code>[`Editor`](Editor)<code>, info: </code>[`MarkdownView`](MarkdownView)<code> | </code>[`MarkdownFileInfo`](MarkdownFileInfo)<code>) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)