Merge pull request #39 from dreamszl/dreamszl/autofocus

Auto focus on editor when switch to edit mode
This commit is contained in:
Mo Bitar
2017-01-19 10:39:59 -06:00
committed by GitHub

View File

@@ -205,6 +205,7 @@ angular.module('app.frontend')
this.toggleMarkdown = function() {
if(this.editorMode == 'preview') {
this.editorMode = 'edit';
this.focusEditor(0);
} else {
this.editorMode = 'preview';
}