FGRibreau / FGRibreau/clipboard-watcher

Support for clipboard content other than text?

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I discovered `dot-clipboard` yesterday and am really excited about it.

It seems like the `data` object is always a plaintext string, even if the content copied was HTML. In this codebase I see other types like `html` and `png`, but I know nothing about AppKit / Objective C so I'm a bit lost. Are those types supported by `clipboard-watcher`?

``` js
if(type === 'html'){
return [$.NSHTMLPboardType, 's'];
}

if(type === 'png'){
return [$.NSHTMLPboardType, 'i'];
}

if(type === 'text'){
return [$.NSStringPboardType, 's'];
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.