From db1d5d263f6d757e19ff560680b49b60fab7502e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 2 Sep 2014 14:03:21 -0700 Subject: [PATCH] Merge pull request #2124 from Daniel15/htmltojsx-fixes Small tweaks to HTML to JSX page --- docs/_js/html-jsx.js | 2 ++ docs/_js/live_editor.js | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/_js/html-jsx.js b/docs/_js/html-jsx.js index ea9b9d698c..ae1d6ec33a 100644 --- a/docs/_js/html-jsx.js +++ b/docs/_js/html-jsx.js @@ -79,6 +79,8 @@ var HELLO_COMPONENT = "\ codeText={HELLO_COMPONENT} renderCode={true} transformer={this.convertToJSX} + showCompiledJSTab={false} + editorTabTitle="Live HTML Editor" /> ); diff --git a/docs/_js/live_editor.js b/docs/_js/live_editor.js index 477db9c856..4d6c66708d 100644 --- a/docs/_js/live_editor.js +++ b/docs/_js/live_editor.js @@ -79,6 +79,8 @@ var ReactPlayground = React.createClass({ codeText: React.PropTypes.string.isRequired, transformer: React.PropTypes.func, renderCode: React.PropTypes.bool, + showCompiledJSTab: React.PropTypes.bool, + editorTabTitle: React.PropTypes.string }, getDefaultProps: function() { @@ -86,6 +88,7 @@ var ReactPlayground = React.createClass({ transformer: function(code) { return JSXTransformer.transform(code).code; }, + editorTabTitle: 'Live JSX Editor', showCompiledJSTab: true }; }, @@ -150,7 +153,7 @@ var ReactPlayground = React.createClass({
- Live JSX Editor + {this.props.editorTabTitle}
return (