- 🐛 Fixed editor unsaved changes modal showing too often (#20787) - Kevin Ansfield
- 🐛 Fixed autosave not triggering when in-editor excerpt is changed (#20785) - Kevin Ansfield
View the changelog for full details: v5.89.3...v5.89.4
Tag Name: v5.89.4
Release Date: 8/20/2024
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
Ghost v5.89.4 fixes critical editor issues with autosave functionality and unsaved changes detection. This release ensures that content changes in the excerpt field properly trigger autosave for drafts and fixes problems with the unsaved changes modal appearing unnecessarily. It also adds Sentry message logging for magic link generation to improve debugging capabilities.
No migration steps are required for this release. The update focuses on bug fixes and minor enhancements that don't require any action from users or administrators.
This release is recommended for all Ghost users, especially those who frequently work with post excerpts or have experienced issues with the unsaved changes modal appearing unnecessarily. The fixes improve content preservation and reduce friction in the editing workflow.
Previously, changes to the excerpt field in the editor weren't properly triggering autosave functionality, potentially leading to lost content. This release adds a blur handler to the excerpt field, ensuring it behaves consistently with the title field by triggering a save when it loses focus.
The fix includes special handling to ensure that only draft posts are autosaved when the excerpt field loses focus, preventing published or scheduled posts from reverting to draft status unexpectedly.
The editor was showing the unsaved changes warning modal too frequently, creating a frustrating user experience. This release restores a previously reverted fix and addresses the underlying issue by correcting falsy-return logic in editorController.hasDirtyAttributes that was preventing proper detection of changes to the underlying model (particularly for excerpts).
This release adds Sentry message logging for the generation of magic links, providing better visibility and debugging capabilities for authentication-related issues. This enhancement will help developers and administrators troubleshoot problems with magic link generation more effectively.
No security fixes were included in this release.
No specific performance improvements were included in this release.
Ghost v5.89.4 delivers important fixes to the editor experience, particularly around autosave functionality and unsaved changes detection. Content creators will benefit from more reliable autosave behavior when editing excerpts, ensuring their work is properly preserved. The fix for the unsaved changes modal reduces unnecessary interruptions during the editing process.
The release also improves the development infrastructure with better test coverage using real model instances instead of simple objects, which will help prevent similar issues in future development. Additionally, the new Sentry message logging for magic links provides better visibility into authentication-related issues.
While this is a minor release focused on bug fixes, the improvements to the editor experience make it a worthwhile update for all Ghost installations.
View the changelog for full details: v5.89.3...v5.89.4