Skip to content

Vite script injection for non iframe version of block editor#3

Merged
jeffreyvr merged 1 commit intomainfrom
non-iframe-editor-vite-injection
May 14, 2025
Merged

Vite script injection for non iframe version of block editor#3
jeffreyvr merged 1 commit intomainfrom
non-iframe-editor-vite-injection

Conversation

@jeffreyvr
Copy link
Copy Markdown
Member

Certain plugins, such as ACF Pro, disable the iframe-based block editor. As a result, Vite's injection script is bypassed, also preventing editor styles from being applied.

This PR resolves the issue by detecting whether the iframe-based editor is active. If it is, the Vite script is injected there; otherwise, it is injected into the main document.

Fixes: #2

@jeffreyvr jeffreyvr merged commit be0c3bf into main May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vite compiler does not load editor style assets

1 participant