scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
831 stars 90 forks source link

Localstorage draft is unaware if page has changed #1

Open scragg0x opened 9 years ago

scragg0x commented 9 years ago

This can happen easily if more than on browser is open or an edit occurs on a page where you have a draft. The user should be informed that a change occurred and given a choice to discard draft, keep, or, gulp, merge with the latest version (at least see the changes).

loleg commented 9 years ago

One of my users is losing entered but unpublished content on a daily basis. They keep multiple editors open (on up-to-date Firefox), and tend to be a.f.k. for periods of time. Apparently upon clicking "Publish", they get the old version of the page without their local changes. Is this related, and if so is there any way to validate or reproduce this bug?

Edit: nevermind, I am pretty sure the issue in my case is the one described in #44.