Skip to content

clipboard: api to list supported types, reading and writing markup#1752

Merged
zcbenz merged 2 commits intoelectron:masterfrom
deepak1556:clipboard_patch
May 28, 2015
Merged

clipboard: api to list supported types, reading and writing markup#1752
zcbenz merged 2 commits intoelectron:masterfrom
deepak1556:clipboard_patch

Conversation

@deepak1556
Copy link
Member

Fixes #1729

Have removed has(format) api , since its no use with availableFormats . Also we have a generic Read api which can read to the supported type but doesnt respond what type it is, can we remove that and just leave with the explicit types [text, html, bitmap, rtf] ?

@deepak1556 deepak1556 force-pushed the clipboard_patch branch 2 times, most recently from 7d21f32 to b59e4df Compare May 22, 2015 11:06
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep the clipboard.has API, most use cases tend to test specified type instead of iterating all types.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format parameter in has api is a bit misleading as its actually deduced from the string passed, should we make it clear in the docs ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The format parameter in has api is a bit misleading as its actually deduced from the string passed, should we make it clear in the docs ?

Sounds good to me.

@zcbenz
Copy link
Contributor

zcbenz commented May 28, 2015

Thanks!

zcbenz added a commit that referenced this pull request May 28, 2015
clipboard: api to list supported types, reading and writing markup
@zcbenz zcbenz merged commit d9102ef into electron:master May 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More support or documentation for using clipboard data formats

2 participants