pasteAsRichText(_:)
An action method that pastes pasteboard content into the receiver as rich text, maintaining its attributes.
Declaration
func pasteAsRichText(_ sender: Any?)Parameters
- sender:
The object that sent this message.
Discussion
The text is inserted at the insertion point if there is one; otherwise, it replaces the selection.