Skip to content

Commit

Permalink
Doc: Fix iframe reference in the Blueprint example (#545)
Browse files Browse the repository at this point in the history
The `iframe` reference in the code example doesn't work without this
change. Also gave it a slightly less generic `id` so as not to clash
with other stuff.
  • Loading branch information
jdevalk authored Jun 13, 2023
1 parent 6b29d2a commit 06ceb10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ You won't have to paste links to follow along. We'll use code examples with a "T
You can also use Blueprints with the JavaScript API using the `startPlaygroundWeb()` function from the `@wp-playground/client` package. Here's a small, self-contained example you can run on JSFiddle or CodePen:

```html
<iframe id="wp" style="width: 1200px; height: 800px"></iframe>
<iframe id="wp-playground" style="width: 1200px; height: 800px"></iframe>
<script type="module">
import { startPlaygroundWeb } from 'https://unpkg.com/@wp-playground/client/index.js';
const client = await startPlaygroundWeb({
iframe,
iframe: document.getElementById('wp-playground'),
remoteUrl: `https://playground.wordpress.net/remote.html`,
blueprint: {
landingPage: '/wp-admin/',
Expand Down

0 comments on commit 06ceb10

Please sign in to comment.