diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 970272124..58475bbed 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -73,6 +73,8 @@ define([ else { editor.setSelection(posToCursor(selects[0], remoteDoc), posToCursor(selects[1], remoteDoc)); } + + editor.scrollTo(scroll.left, scroll.top); }; module.handleImagePaste = function (editor) {