| @@ -78,8 +78,11 @@ | ||
| 78 | 78 | $this->enqueueAsset(); // Enqueue block editor-specific JS/CSS here |
| 79 | 79 | }); |
| 80 | 80 | add_action('enqueue_block_assets', function () { |
| 81 | 81 | if($this->isBlockEditor()) { |
| 82 | + // Reset flag so styles also load inside the WP 6.3+ editor iframe | |
| 83 | + // (enqueue_block_editor_assets already set it on the outer admin page) | |
| 84 | + $this->isStylesLoaded = false; | |
| 82 | 85 | $this->enqueueStyles(); |
| 83 | 86 | } |
| 84 | 87 | }); |
| 85 | 88 | |