Editor: Merge adjacent revision inline diffs - #80579
Conversation
|
Size Change: +127 B (0%) Total Size: 7.75 MB 📦 View Changed
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 478e5ad. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30017608651
|
What?
Part of #77530.
Merges adjacent word-level inline revision diffs into fewer
<del>/<ins>elements so consecutive edits are grouped instead of marked one word at a time.Why?
Editor: The editor inconsistently marks up groups of words vs. individual words. E.g., if you've edited several words in a row, it may group them all, group some of them, or have all of them individually in separate del or ins elements. I couldn't figure out why during my testing. However, when they are separate, they significantly increase verbosity for screen reader users.
How?
Add
mergeTextDiffParts()inblock-diff.jsto merge adjacent removed/added tokens into a single removed part and a single added part.Testing Instructions
Use of AI Tools