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
// Copy the layer name of the selected item to the clipboard
let clipboard = require("clipboard");
clipboard.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 © 2024 Adobe. All rights reserved.