How to save the cursor after submit at old position in codemirror?

I do submit for content codemirror after x second … How I can to kepping the cursor at same position on codemirror after submit ?

thanks for all , finally I found answer … I like to share my result maybe some one need it
I must to use function editor.setCursor({line: 1, ch: 5}) I hope one day to be useful for other people

I would vote for this feature. It would be nice if codemirror plugin restores the cursor position (and scrolling offset) after page submission. Currently scrolling and cursor position are reset.