on iOS or other mobile platform, the browser instance/app might be killed when it is temporarily switched to background. If a user has unsent note in the editor, it will lose, which is quite sad thing.
A good solution can be keep latest draft including content,isPrivate,isMarkdown information in the local storage, when user re-enters the editor, check local storage first and load temporary saved draft into editor when it is available.
on iOS or other mobile platform, the browser instance/app might be killed when it is temporarily switched to background. If a user has unsent note in the editor, it will lose, which is quite sad thing.
A good solution can be keep latest draft including content,isPrivate,isMarkdown information in the local storage, when user re-enters the editor, check local storage first and load temporary saved draft into editor when it is available.