0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 10:52:46 +00:00

newPage is now working, working on editpage

This commit is contained in:
Scott Tolksdorf
2016-12-27 15:13:18 -05:00
parent 8abf6abf99
commit f4cf288f27
36 changed files with 280 additions and 1986 deletions

View File

@@ -66,6 +66,11 @@ const BrewEditor = React.createClass({
})
},
brewJump : function(){
const currentPage = this.getCurrentPage();
window.location.hash = 'p' + currentPage;
},
//Called when there are changes to the editor's dimensions
update : function(){
this.refs.codeEditor.updateSize();
@@ -113,6 +118,12 @@ const BrewEditor = React.createClass({
onChange={this.handleTextChange}
onCursorActivity={this.handleCursorActivty} />
</div>
{/*
<div className='brewJump' onClick={this.brewJump}>
<i className='fa fa-arrow-right' />
</div>
*/}
);
}
});