Skip to content

Commit

Permalink
Open new notes in edit mode (Automattic#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons authored Nov 22, 2016
1 parent 59fad8a commit 6c1e4d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/flux/app-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ var actionMap = new ActionMap( {
dispatch( this.action( 'selectAllNotes' ) );
}

if ( settings.markdownEnabled ) {
dispatch( this.action( 'setEditorMode', { mode: 'edit' } ) );
}

// insert a new note into the store and select it
noteBucket.add( {
content: '',
Expand Down

0 comments on commit 6c1e4d3

Please sign in to comment.