X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/421c624a25e602a3d3bb72bd6c01cbb04cbf7d11..9a9e6d2723f56145d45790667212a4019fd5776b:/modules/documentCanvas/documentCanvas.js?ds=inline diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index bde08d3..1c3242a 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -22,6 +22,7 @@ return function(sandbox) { canvasWrapper.onShow = function() { if(!shownAlready) { shownAlready = true; + canvas.setCurrentElement(canvas.doc().getVerticallyFirstTextElement()); } else { canvas.setCursorPosition(cursorPosition); this.find('#rng-module-documentCanvas-contentWrapper').scrollTop(scrollbarPosition);