Repository navigation
Commit 016faff
fix: load the block editor stylesheet inside the iframed editor canvas
WordPress 7.1 always renders the post editor in an iframe, and styles enqueued
via enqueue_block_editor_assets only reach the parent document, leaving the
visualizer/chart placeholder unstyled and breaking its e2e specs. Registering
the stylesheet as the block type's editor_style gets it injected into the
canvas on every core version.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 150d730 commit 016faff
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
205 | 218 | | |
206 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
| |||
0 commit comments