Edit in GitHubLog an issue

clipboard

This module lets you copy text to the clipboard. It is not yet possible to copy other content types, or to handle paste events.

Example

Copied to your clipboard
1// Copy the layer name of the selected item to the clipboard
2let clipboard = require("clipboard");
3clipboard.copyText(selection.items[0].name);

copyText()

copyText(text)

Write plain text to the clipboard.

ParamTypeDescription
text
string
Will be automatically converted to string if a different type is passed

Kind: static method of clipboard

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.