X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/421c624a25e602a3d3bb72bd6c01cbb04cbf7d11..104d3449c7d2c5ada68cc49f4a67d6e70973b492:/modules/documentCanvas/documentCanvas.js?ds=sidebyside 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);