Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Text formatting applying to individual characters | GoodFirstPicks

Text formatting applying to individual characters

WordPress/gutenberg 11 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeWordPressJavaScriptReact

Why this is a good first issue

Formatting issue appears plugin-specific but may involve core format handling.

AI Summary

The issue involves text formatting applying to individual characters in a specific plugin context, possibly related to format registration changes in WordPress 5.9. While maintainers couldn't reproduce it recently, the original report suggests a real interaction pattern that needs investigation. The main blocker is determining if this is still reproducible with current versions.

Issue Description

Description

This appears to be a bug introduced in WordPress 5.9. I have a plugin that adds a screen reader only text format and then highlights the content with the markup in the WordPress editor while hiding the content visually on the front end.

This worked previously, but it was reported to me last night that this has started highlighting each individual character. It seems this happens when selecting the screen reader text format, then typing. If one types the content, highlights it, then selects the text format, it applies to the whole block of text.

Step-by-step reproduction instructions

  1. Install the Screen Reader Text Format plugin
  2. Activate the plugin
  3. Go to the block editor with a new or existing post
  4. Type some content
  5. Highlight the content
  6. Select screen reader text format
  7. Add a new block
  8. Select screen reader text format
  9. Type content

The first content will be wrapped in a single span and highlight the content correctly. The second content will wrap each character individually.

Screenshots, screen recording, code snippet

Screen Recording

Environment info

  • WordPress 5.9
  • Theme: TwentyTwentyTwo
  • Only plugin active is Screen Reader Text Format

note: Did not check "Please confirm that you have tested with all plugins deactivated except Gutenberg." because Gutenberg is not active and the Screen Reader Text Format plugin is highlighting the issue with the text format applying the span to individual characters.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

GitHub Labels

[Type] Bug[Package] Format library

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • requires plugin interaction
  • potential format registration changes
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno
AssigneeMamaduka