Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClipboardItem data DOMString support usage document #895

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sambandaru
Copy link

@sambandaru sambandaru commented Oct 16, 2024

Document showing how to enable and use ClipboardItem data DOMString support in Chromium-based browsers.
This serves as supporting document for https://chromestatus.com/feature/4926138582040576

@sambandaru
Copy link
Author

@microsoft-github-policy-service agree company="Microsoft"

```javascript
async function writeToClipboard() {
try {
const text_string = "Hello World";
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 also show what was the earlier way to pass string to clipboard item (using Blob class) so that it is clear what has changed from the example

Copy link
Author

@sambandaru sambandaru Oct 17, 2024

Choose a reason for hiding this comment

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

Done

@sambandaru sambandaru force-pushed the clipboarditem-domstring branch from b24ce03 to 6eb8658 Compare October 17, 2024 16:36
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.

2 participants