@@ -186,6 +186,23 @@ class NoteContentEditor extends Component<Props> {
186186
187187 componentDidMount ( ) {
188188 const { noteId } = this . props ;
189+ this . bootTimer = setTimeout ( ( ) => {
190+ if ( noteId === this . props . noteId ) {
191+ this . setState ( {
192+ editor : 'full' ,
193+ content : withCheckboxCharacters ( this . props . note . content ) ,
194+ } ) ;
195+ const position = getNotePosition ( noteId ) ;
196+ if ( position ) {
197+ this . editor ?. setScrollPosition ( {
198+ scrollTop : position ,
199+ } ) ;
200+ }
201+ }
202+ } , SPEED_DELAY ) ;
203+ this . focusEditor ( ) ;
204+ this . props . storeFocusEditor ( this . focusEditor ) ;
205+ this . props . storeHasFocus ( this . hasFocus ) ;
189206 window . addEventListener ( 'resize' , clearNotePositions ) ;
190207 window . addEventListener ( 'toggleChecklist' , this . handleChecklist , true ) ;
191208 this . toggleShortcuts ( true ) ;
@@ -596,19 +613,6 @@ class NoteContentEditor extends Component<Props> {
596613 editorReady : EditorDidMount = ( editor , monaco ) => {
597614 this . editor = editor ;
598615
599- this . focusEditor ( ) ;
600- this . props . storeFocusEditor ( this . focusEditor ) ;
601- this . props . storeHasFocus ( this . hasFocus ) ;
602-
603- this . bootTimer = setTimeout ( ( ) => {
604- const position = getNotePosition ( this . props . noteId ) ;
605- if ( position ) {
606- this . editor ?. setScrollPosition ( {
607- scrollTop : position ,
608- } ) ;
609- }
610- } , SPEED_DELAY ) ;
611-
612616 monaco . languages . registerLinkProvider ( 'plaintext' , {
613617 provideLinks : ( model ) => {
614618 const matches = model . findMatches (
0 commit comments