Auto focus on editor when switch to edit mode
This commit is contained in:
@@ -196,6 +196,7 @@ angular.module('app.frontend')
|
||||
this.toggleMarkdown = function() {
|
||||
if(this.editorMode == 'preview') {
|
||||
this.editorMode = 'edit';
|
||||
this.focusEditor(0);
|
||||
} else {
|
||||
this.editorMode = 'preview';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user