User can copy JSON config from Playground. (#5295)

master
Beau Smith 2018-10-25 14:41:08 -07:00 committed by Jed Fox
parent 1234ceb1d6
commit 6e0de08122
1 changed files with 3 additions and 0 deletions

View File

@ -218,6 +218,9 @@ class Playground extends React.Component {
{editorState.showSidebar ? "Hide" : "Show"} options
</Button>
<Button onClick={this.clearContent}>Clear</Button>
<ClipboardButton copy={JSON.stringify(options, null, 2)}>
Copy config JSON
</ClipboardButton>
</div>
<div className="bottom-bar-buttons bottom-bar-buttons-right">
<ClipboardButton copy={window.location.href}>