diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index 4d32f36f..185f37ac 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -94,6 +94,11 @@ const Editor = createClass({ }, componentDidUpdate : function(prevProps, prevState, snapshot) { + console.log(this.props); + console.log(prevProps); + console.log(this.state); + console.log(prevState); + this.highlightCustomMarkdown(); if(prevProps.moveBrew !== this.props.moveBrew) { this.brewJump(); @@ -126,7 +131,7 @@ const Editor = createClass({ if(e.keyCode == SCROLLLOCK_KEY) { liveScroll = !liveScroll; } - + if(!(e.ctrlKey || e.metaKey)) return; // Handle CTRL-HOME and CTRL-END diff --git a/shared/naturalcrit/splitPane/splitPane.jsx b/shared/naturalcrit/splitPane/splitPane.jsx index 0718a97b..217fcc80 100644 --- a/shared/naturalcrit/splitPane/splitPane.jsx +++ b/shared/naturalcrit/splitPane/splitPane.jsx @@ -15,13 +15,14 @@ const SplitPane = createClass({ getInitialState : function() { return { - currentDividerPos : null, - windowWidth : 0, - isDragging : false, - moveSource : false, - moveBrew : false, - liveScroll : true, - showMoveArrows : true + currentDividerPos : null, + windowWidth : 0, + isDragging : false, + moveSource : false, + moveBrew : false, + liveScroll : true, + viewablePageNumber : 0, + showMoveArrows : true }; },