Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add base to Iframe head
This allows relative urls to be used in <link>, <a>, <img>, etc.
  • Loading branch information
vonloxx authored Nov 26, 2023
commit 27ca3171c8a6eeb2cf99624c81ddf2e4a7e6c1fc
1 change: 1 addition & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ function Iframe( {
<html>
<head>
<meta charset="utf-8">
<base href="${ window.location.origin }">
<script>window.frameElement._load()</script>
<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>
${ styles }
Expand Down