mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 15:12:40 +00:00
Moved codemirror in the shared dir, new codeeditor seems to be working
This commit is contained in:
@@ -18,6 +18,8 @@ var Navbar = require('../navbar/navbar.jsx');
|
||||
|
||||
|
||||
|
||||
var CodeEditor = require('naturalcrit/codeEditor/codeEditor.jsx');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -83,14 +85,18 @@ var HomePage = React.createClass({
|
||||
|
||||
<div className='content'>
|
||||
<SplitPane>
|
||||
<Editor text={this.state.text} onChange={this.handleTextChange} />
|
||||
<PageContainer text={this.state.text} />
|
||||
<CodeEditor />
|
||||
<CodeEditor language='gfm' />
|
||||
</SplitPane>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{/*
|
||||
<a href='/homebrew/new' className='floatingNewButton'>
|
||||
Create your own <i className='fa fa-magic' />
|
||||
</a>
|
||||
*/}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -98,6 +104,17 @@ var HomePage = React.createClass({
|
||||
|
||||
module.exports = HomePage;
|
||||
|
||||
/*
|
||||
<SplitPane>
|
||||
|
||||
|
||||
<PageContainer text={this.state.text} />
|
||||
<Editor text={this.state.text} onChange={this.handleTextChange} />
|
||||
</SplitPane>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/* Test code
|
||||
<div className='content'>
|
||||
|
||||
Reference in New Issue
Block a user