Skip to content

DOC-3526: Using the undo keyboard shortcut did not restore editor selection correctly#4170

Open
kemister85 wants to merge 1 commit into
feature/8.7.0/DOC-3526from
feature/8.7.0/DOC-3526_TINY-14255
Open

DOC-3526: Using the undo keyboard shortcut did not restore editor selection correctly#4170
kemister85 wants to merge 1 commit into
feature/8.7.0/DOC-3526from
feature/8.7.0/DOC-3526_TINY-14255

Conversation

@kemister85
Copy link
Copy Markdown
Contributor

@kemister85 kemister85 commented Jun 5, 2026

Ticket: DOC-3526

Site: Staging

Changes:

  • Added release note entry for TINY-14255 to modules/ROOT/pages/8.7.0-release-notes.adoc (Bug fixes section): Using the undo keyboard shortcut did not restore editor selection correctly.

Pre-checks:

  • Branch is correctly prefixed (release-note branch)
  • modules/ROOT/nav.adoc has been updated (if applicable).
  • Files have been included where required (if applicable).
  • Files removed have been deleted, not just excluded from the build (if applicable).
  • Files added for New product features include a release note entry.
  • Major or minor version changes have updated the supported-versions.adoc table.
  • Build passes without console errors, warnings, or issues.

@kemister85 kemister85 added this to the TinyMCE 8.7.0 milestone Jun 5, 2026
@kemister85 kemister85 added the upcoming release Documentation for features currently under development/QA label Jun 5, 2026
@kemister85 kemister85 requested a review from lorenzo-pomili June 5, 2026 03:51
@kemister85 kemister85 marked this pull request as ready for review June 5, 2026 03:51
@kemister85 kemister85 requested review from a team and soritaheng as code owners June 5, 2026 03:51
@kemister85 kemister85 requested review from EkimChau, ShiridiGandham and tiny-ben-tran and removed request for a team June 5, 2026 03:51

Previously, pressing the undo keyboard shortcut (Ctrl+Z, or Cmd+Z on macOS) after deleting a selection could leave the cursor in the wrong position. An earlier change registered an extra undo step whenever Ctrl or Cmd was pressed, so the step was recorded before the deleted content was restored.

In {productname} {release-version}, the undo step is registered only when Ctrl or Cmd is pressed together with Backspace or Delete. Undoing the deletion of a selection now restores both the content and the original selection correctly.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it could make sense to specify that now we add the undo level only for: Ctrl or Cmd is pressed together with Backspace or Delete is related to: An earlier change registered an extra undo step whenever Ctrl or Cmd was pressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upcoming release Documentation for features currently under development/QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants