X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/421c624a25e602a3d3bb72bd6c01cbb04cbf7d11..67387c5b199cba829f5f7563ff93020328cbe0ef:/modules/documentCanvas/documentCanvas.js 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);