Clarification Needed on Implementing "Remember Editing State" Feature

Hi everyone,

I'm looking for some guidance on implementing a feature as discussed in Issue #11521, where the app should remember the viewing/editing mode, similar to how it works on the desktop version. The idea is that the app should persist the editing state even after restarting, making the Markdown editor more seamless for users.

I wanted to ask for clarification on the following:

  1. Which files or parts of the codebase should I focus on for implementing this feature?
    Are there any specific components that handle view/edit mode persistence, or any existing code that would be useful to extend?

  2. Is this feature required to be implemented across all platforms (desktop, mobile, terminal)?
    I’m wondering if the behavior should be consistent across all devices, or if the implementation should focus on a specific platform (such as desktop) and be adapted later for others.

I would appreciate any guidance on the best approach for this!

Thanks in advance for the help.