---
title: "pasteAsPlainText(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextview/pasteasplaintext(_:)"
---

# pasteAsPlainText(_:)

Inserts the contents of the pasteboard into the receiver’s text as plain text.

## Declaration

```swift
func pasteAsPlainText(_ sender: Any?)
```

## Parameters

- `sender`: The control that sent the message; may be nil.

## Discussion

Discussion This method behaves analogously to insertText(_:).

## See Also

### Related Documentation

- [insertText(_:)](appkit/nstextview/inserttext(_:).md)

### Clicking and pasting

- [clicked(onLink:at:)](appkit/nstextview/clicked(onlink:at:).md)
- [pasteAsRichText(_:)](appkit/nstextview/pasteasrichtext(_:).md)
