RichText.CopyToClipboard
------------------------

Puts current rich text on the clipboard.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [13.0](newinversion130.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "RichText.CopyToClipboard" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Puts current rich text on the clipboard.  
Will put styled text (and plain text) on the clipboard.  
### Examples

Parse some html and put it as styled text on the clipboard:

 Set Variable \[ $html ; Value: "&lt;a href=\\"https://monkeybreadsoftware.com/filemaker\\"&gt;MBS Plugin&lt;/a&gt;" \]   
Set Variable \[ $r ; Value: MBS ( "[RichText.ReadHTML](RichTextReadHTML.md)"; $HTML ; "UTF-8") \]   
Set Variable \[ $r ; Value: MBS ( "RichText.CopyToClipboard" ) \]  
### See also

- [RichText.ReadFromClipboard](RichTextReadFromClipboard.md)
- [RichText.ReadHTML](RichTextReadHTML.md)

### Release notes

- **Version 13.0**
    - Added [RichText.CopyToClipboard](https://www.mbsplugins.eu/RichTextCopyToClipboard.shtml) and [RichText.ReadFromClipboard](https://www.mbsplugins.eu/RichTextReadFromClipboard.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.0](https://www.mbsplugins.de/archive/2023-01-24/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.6pr4](https://www.mbsplugins.de/archive/2022-12-21/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 16th December 2022 , last changed 16th December 2022

  
[RichText.Clear](RichTextClear.md) - [RichText.FormattedText](RichTextFormattedText.md)

[HTML Version](RichTextCopyToClipboard.shtml)