#63959: Add title attribute to post save action #68537
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #63959
What?
Add post title to save payload regardless of modification status to ensure consistent title synchronization across multiple editor sessions.
Why?
Currently, the post title is only included in the save payload when it has been modified in the current editing session. This creates inconsistent behavior when editing a post in multiple windows/tabs:
Changes to the title in one window can be inadvertently overwritten when saving content from another window
Users experience unexpected title changes when saving, leading to confusion
The current behavior violates the principle of least surprise - users expect all post content (including title) to be saved consistently
How?
Modified the savePost action to always include the current post title in the save payload by adding:
Testing Instructions
Screenshots or screencast
screen-capture.1.webm