diff --git a/static/js/Editor.js b/static/js/Editor.js index 94c6ce7..5686361 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -32,7 +32,7 @@ function Editor( id, notebook_id, note_text, deleted_from_id, revision, read_wri "name": iframe_id, "class": "note_frame", "onresize": function () { setTimeout( function () { self.resize() }, 50 ); }, - "onload": function () { setTimeout( function () { self.resize() }, 250 ); } + "onload": function () { setTimeout( function () { self.resize(); if ( !highlight ) scroll( 0, 0 ); }, 250 ); } } ); this.iframe.editor = this; this.title = "";