You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data lost when switching from source code to preview mode #3590
Thank you for reporting this! The MarkText editor engine has been completely rewritten (the legacy muyajs engine replaced by a new TypeScript @muyajs/core engine), and the source-code↔WYSIWYG mode handoff has been redesigned from scratch. When you exit source-code mode, the new engine explicitly captures CodeMirror's full content via getValue() and applies it to the WYSIWYG engine as a single, fully-invertible undo boundary — so edits (including complex tables) are never lost in the transition, even if the document was unsaved. This is covered by automated e2e tests that verify content survives the round-trip. If you encounter data loss with the current build, please reopen with a repro on the latest version.
Activity
Jocs commentedon Jun 20, 2026
Thank you for reporting this! The MarkText editor engine has been completely rewritten (the legacy
muyajsengine replaced by a new TypeScript@muyajs/coreengine), and the source-code↔WYSIWYG mode handoff has been redesigned from scratch. When you exit source-code mode, the new engine explicitly captures CodeMirror's full content viagetValue()and applies it to the WYSIWYG engine as a single, fully-invertible undo boundary — so edits (including complex tables) are never lost in the transition, even if the document was unsaved. This is covered by automated e2e tests that verify content survives the round-trip. If you encounter data loss with the current build, please reopen with a repro on the latest version.tcharlss commentedon Jun 20, 2026
Thanks for the fix and the explanation, looking forward to try it out