Skip to content

Commit 0f65e76

Browse files
robertheesselsCompuIves
authored andcommitted
Improving embed doc. The example code was missing. (codesandbox#551)
1 parent a769222 commit 0f65e76

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/homepage/content/docs/2-embedding.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ This embed is focused on being as light as possible:
4949

5050
`https://codesandbox.io/embed/new?codemirror=1`
5151

52+
Use this code to embed:
53+
54+
`<iframe src="https://codesandbox.io/embed/new?codemirror=1" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>`
55+
56+
That will give to a result like this:
57+
5258
<iframe src="https://codesandbox.io/embed/new?codemirror=1" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>
5359

5460
### Code Example Embed
@@ -57,4 +63,10 @@ You can also use CodeSandbox to show code examples, with highlighted lines. This
5763

5864
`https://codesandbox.io/embed/new?codemirror=1&highlights=11,12,13,14`
5965

66+
Use this code to embed:
67+
68+
`<iframe src="https://codesandbox.io/embed/new?codemirror=1&highlights=11,12,13,14" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>`
69+
70+
That will give to a result like this:
71+
6072
<iframe src="https://codesandbox.io/embed/new?codemirror=1&highlights=11,12,13,14" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>

0 commit comments

Comments
 (0)