Reading Clipboard Data

Hello,
I’m trying to read the clipboard in a Photoshop plugin.

const read_clipboard = () =>
{
  console.log(navigator.clipboard);
}

Which results in this error:
Failed to create Clipboard object. Clipboard access not supported for 3rd party plugins yet.

There’s no mention of limited Clipboard support in the documentation.

Is there any way to work around this? I really have the need to get clipboard data.

Hey !Is the problem solved? :smiley:

Doesn’t look like it’s supported even with v5 manifest

Did you try API v2 in addition? There should be clipboard permissions.

I found the solution in alchemist/manifest.json at master · jardicc/alchemist · GitHub

  1. need to upgrade manifest.manifestVersion to 5
  2. add requiredPermissions.clipboard config (pretty like chrome extension)

then it works!

otherwise, why official document didn’t mention to this key?

1 Like