save scroll position in editor