Skip to content

Clipboard fix for iframes#2321

Merged
abidlabs merged 1 commit into
mainfrom
fix-clipboard
Sep 22, 2022
Merged

Clipboard fix for iframes#2321
abidlabs merged 1 commit into
mainfrom
fix-clipboard

Conversation

@abidlabs
Copy link
Copy Markdown
Member

Previously, the copy button in the JSON output would not work when the Gradio demo was embedded in a jupyter/colab notebook.

This grants the <iframe> permission to copy.

Fixes: #2311 (well not the original issue, since that's beyond our control, but the version of it for iframes)

@github-actions
Copy link
Copy Markdown
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2321-all-demos

Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

Thanks @abidlabs! Tested and works great

Copy link
Copy Markdown
Contributor

@aliabid94 aliabid94 left a comment

Choose a reason for hiding this comment

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

LGTM

@abidlabs abidlabs merged commit 581fbab into main Sep 22, 2022
@abidlabs abidlabs deleted the fix-clipboard branch September 22, 2022 17:52
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.

copy to clipboard is not working

3 participants