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

Add source editor component #4419

Merged
merged 23 commits into from
Jan 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix copy and paste disabled state
  • Loading branch information
Edmundo Alvarez committed Jan 11, 2018
commit 67f7b571661244326094990ca289a9fa102a42d8
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class SourceCodeEditor extends React.Component {
onSuccess={this.focusEditor}
text={this.state.selectedText}
buttonTitle="Copy (Ctrl+C / ⌘C)"
disabled={this.isCopyDisabled} />
disabled={this.isCopyDisabled()} />
<OverlayTrigger placement="top" trigger="click" overlay={overlay} rootClose>
<Button bsStyle="link" bsSize="sm" title="Paste (Ctrl+V / &#8984;V)" disabled={this.isPasteDisabled}>
<Button bsStyle="link" bsSize="sm" title="Paste (Ctrl+V / &#8984;V)" disabled={this.isPasteDisabled()}>
<i className="fa fa-paste fa-fw" />
</Button>
</OverlayTrigger>
Expand Down