Skip to content

refactor: split editor.js into modules and cleanup features#12

Merged
apandey-dev merged 1 commit intoMainfrom
refactor-modularize-editor-3576818610782043946
Mar 8, 2026
Merged

refactor: split editor.js into modules and cleanup features#12
apandey-dev merged 1 commit intoMainfrom
refactor-modularize-editor-3576818610782043946

Conversation

@apandey-dev
Copy link
Owner

  • Modularized editor.js into editor-core.js, editor-actions.js, and editor-state.js.
  • Removed legacy features: "Save Now", "Sync Note", "Push All", and old auto-save UI.
  • Implemented new Settings Modal with a single "Auto Save" toggle.
  • Added a manual "Save" button to the status bar, visible when Auto Save is disabled.
  • Implemented "Unsaved Drafts" restoration logic to prevent data loss during manual save mode.
  • Updated index.html to include new script modules in the correct loading order.
  • Standardized UI components including tooltips, focus mode, and the transfer modal.

- Split editor.js into editor-core.js, editor-actions.js, and editor-state.js.
- Removed legacy "Save Now", "Sync Note", and "Push All" UI and logic.
- Implemented new Settings Modal with "Auto Save" toggle and UI visibility controls.
- Added dynamic manual "Save" button in the status bar (visible when Auto Save is off).
- Implemented "unsaved drafts" recovery system for data safety.
- Fixed split-view drag bug by adding restoration edge handles.
- Updated index.html with new script module structure.
- Cleaned up ui.js and github.js.

Co-authored-by: apandey-dev <240406893+apandey-dev@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Mar 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-studio Ready Ready Preview, Comment Mar 8, 2026 7:18am

@apandey-dev apandey-dev merged commit 9c9cc52 into Main Mar 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant