[wp-trac] [WordPress Trac] #64210: Block editor: Make fit text work with the interativity API
WordPress Trac
noreply at wordpress.org
Thu Nov 6 18:22:43 UTC 2025
#64210: Block editor: Make fit text work with the interativity API
---------------------------------------+-------------------------------
Reporter: jorgefilipecosta | Owner: jorgefilipecosta
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: gutenberg-merge has-patch | Focuses:
---------------------------------------+-------------------------------
Changes (by jorgefilipecosta):
* owner: (none) => jorgefilipecosta
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"61145" 61145]:
{{{
#!CommitTicketReference repository="" revision="61145"
Block editor: Make fit text work with the interactivity API.
Fit text did not work after navigating to a page using the Interactivity
API router. When users navigated to a post via client-side navigation
(e.g., in a Query block with pagination), fit text blocks would not
recalculate their font sizes, appearing either too large or too small.
This occurred because the fit text initialization only ran on the
window.load event, which doesn't fire during client-side navigation.
We refactored fit text front end to be an interactivity api first
implementation, using an interactivity api init event instead of a window
load event.
This commit adds the required PHP changes.
Props jorgefilipecosta, mukesh27, luisherranz.
Fixes #64210.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64210#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list