forked from react-bootstrap/react-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve code appearance and copyediting on docs
Fixes react-bootstrap#94
- Loading branch information
Jimmy Jia
committed
May 18, 2015
1 parent
122c9bc
commit dbb36a2
Showing
7 changed files
with
155 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
|
||
export default class CodeExample extends React.Component { | ||
render() { | ||
return ( | ||
<pre className="cm-s-solarized cm-s-light"> | ||
<code> | ||
{this.props.codeText} | ||
</code> | ||
</pre> | ||
); | ||
} | ||
|
||
componentDidMount() { | ||
if (CodeMirror === undefined) { | ||
return; | ||
} | ||
|
||
CodeMirror.runMode( | ||
this.props.codeText, | ||
this.props.mode, | ||
React.findDOMNode(this).children[0] | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.