[wp-trac] [WordPress Trac] #57550: Block editor: separate content styles for the iframe

WordPress Trac noreply at wordpress.org
Wed Feb 1 20:15:53 UTC 2023


#57550: Block editor: separate content styles for the iframe
----------------------------------------------+----------------------------
 Reporter:  ellatrix                          |       Owner:
                                              |  hellofromTonya
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  6.2
Component:  Editor                            |     Version:
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  has-patch gutenberg-merge commit  |     Focuses:
----------------------------------------------+----------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55179" 55179]:
 {{{
 #!CommitTicketReference repository="" revision="55179"
 Editor: Separate content styles for iframe in
 __wp_get_iframed_editor_assets() and wp_default_styles().

 This changeset:
 * Removes the `'wp-block-editor'` and `'wp-block-library'` from the
 iframe's stylesheet collection (i.e. `_wp_get_iframed_editor_assets()`).
 * Adds the new `'wp-block-editor-content'` for the separate stylesheet to
 the list of editor (`'wp-edit-blocks'`) dependencies.

 Why?

 These PHP changes are part of the initiative to:

 * Separate the content styles contained in the block editor package into a
 separate stylesheet.
 * Avoid loading all block editor styles into the iframe.

 References:
 * [https://github.com/WordPress/gutenberg/pull/44298 Gutenberg PR 44298].

 Follow-up to [53160], [50761].

 Props ellatrix, youknowriad.
 Fixes #57550.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57550#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list