0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 15:32:40 +00:00

Added a table of contents snippet

This commit is contained in:
Scott Tolksdorf
2016-12-03 15:47:20 -05:00
parent d96ac0f3ca
commit be783e5f6b
7 changed files with 137 additions and 7 deletions

View File

@@ -82,7 +82,11 @@ const Editor = React.createClass({
render : function(){
return(
<div className='editor' ref='main'>
<SnippetBar onInject={this.handleInject} onToggle={this.handgleToggle} showmeta={this.state.showMetadataEditor} />
<SnippetBar
brew={this.props.value}
onInject={this.handleInject}
onToggle={this.handgleToggle}
showmeta={this.state.showMetadataEditor} />
{this.renderMetadataEditor()}
<CodeEditor
ref='codeEditor'