Skip to content

Advanced iframe body class#13

Merged
lukasniebler merged 9 commits intodevfrom
advanced-iframe-body-class
Feb 25, 2026
Merged

Advanced iframe body class#13
lukasniebler merged 9 commits intodevfrom
advanced-iframe-body-class

Conversation

@lukasniebler
Copy link
Contributor

As described in #12

Adds two Packages for the Feature of #12. This also updates Axios, fixing 3+ Security Vulnerabilities, bumping axios to v1.13.5 and classnames to v2.5.1. Part of #12
Adds proper TypeScript configuration and adds Types required for the planned Script of #12 for injection Classes into the body-Tag inside the BlockEditors iFrame.
Adds block-editor-iframe-body-class-injection.ts to observe the iFrame of the BlockEditor (BE). Also adds the compiled Version generated via npm run build. Part of #12
Extends the Advanced Settings page with 3 Additional Fields for setting the desired CSS-Classes that should be injected within the BlockEditors' iFrame Body Tag. Part of #12
Extends the Sanitizer with a new Class with functions to sanitize the CSS-Classes inserted by the user Input. This is part of #12 for Injecting Body Classes inside the BlockEditor iFrame.
Introduces a few number of checks. Only if the conditions are met, the JS file will be embedded and the Classes injected into the iFrame Body of the BlockEditor. s. #12
This Change registers the required three new options in Options Class. As part of #12
The function to wait for the BlockEditor in the BlockEditor store is marked as unstable. We changed it to the unstable version. As part of #12
Fixes an issue in the Sanitizer where Capital Letters were ignored. Part of #12
@lukasniebler lukasniebler merged commit 878cdb8 into dev Feb 25, 2026
1 check failed
@lukasniebler lukasniebler deleted the advanced-iframe-body-class branch February 25, 2026 13:31
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.

1 participant