standardnotes / markdown-basic

[Moved to https://github.com/standardnotes/app] A basic Markdown editor for Standard Notes
https://standardnotes.com
GNU Affero General Public License v3.0
11 stars 12 forks source link

Simple Markdown Editor should remember the position while switching between modes #24

Open x80486 opened 4 years ago

x80486 commented 4 years ago

Right now, the Edit mode is not synchronized with the Preview mode.

If I'm in Edit mode at line 1, switch to Preview mode and scroll down to line 1000, and then switch back to Edit mode, it puts the cursor back in line 1.

I think the solution here is to put the cursor whenever the scroll is at — or about.