@@ -6,10 +6,10 @@ description: Embed a sandbox in docs, blog posts, Medium, and other websites.
6
6
7
7
## What is an Embed?
8
8
9
- An embed enables you to include a sandbox in your documentation, blog post,
10
- or website using an iframe, or anywhere with Embedly support, like Medium,
11
- Reddit, Trello, and Notion. You can show just the code, the preview, or both
12
- at the same time.
9
+ An embed enables you to include a sandbox in your documentation, blog post, or
10
+ website using an iframe, or anywhere with Embedly support, like Medium, Reddit,
11
+ Trello, and Notion. You can show just the code, the preview, or both at the same
12
+ time.
13
13
14
14
CodeSandbox has a separate application for the embed. This application is
15
15
specifically built to be as small as possible. If you replace ` s ` in the URL of
@@ -19,8 +19,8 @@ the embed doesn't have all of the features of the full editor.
19
19
20
20
## Generate an Embed URL
21
21
22
- You can generate a URL to embed by clicking 'Embed' in the header on the editor and selecting the options
23
- you want to have enabled.
22
+ You can generate a URL to embed by clicking 'Embed' in the header on the editor
23
+ and selecting the options you want to have enabled.
24
24
25
25
![ Share Button] ( ./images/share-button.png )
26
26
@@ -72,14 +72,14 @@ Use this code to embed:
72
72
<iframe
73
73
src =" https://codesandbox.io/embed/new?codemirror=1"
74
74
style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;"
75
- allow =" geolocation; microphone ; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media ; usb"
76
- sandbox =" allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
75
+ allow =" accelerometer; ambient-light-sensor ; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment ; usb; vr "
76
+ sandbox =" allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts "
77
77
></iframe >
78
78
```
79
79
80
80
That will give to a result like this:
81
81
82
- <iframe src =" https://codesandbox.io/embed/new?codemirror=1 " style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;" allow =" geolocation; microphone ; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media ; usb" sandbox =" allow-modals allow-forms allow-popups allow-scripts allow-same-origin " ></iframe >
82
+ <iframe src =" https://codesandbox.io/embed/new?codemirror=1 " style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;" allow =" accelerometer; ambient-light-sensor ; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment ; usb; vr " sandbox =" allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts " ></iframe >
83
83
84
84
### Code Example Embed
85
85
@@ -94,11 +94,11 @@ Use this code to embed:
94
94
<iframe
95
95
src =" https://codesandbox.io/embed/new?codemirror=1&highlights=6,7,8,9"
96
96
style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;"
97
- allow =" geolocation; microphone ; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media ; usb"
98
- sandbox =" allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
97
+ allow =" accelerometer; ambient-light-sensor ; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment ; usb; vr "
98
+ sandbox =" allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts "
99
99
></iframe >
100
100
```
101
101
102
102
That will give to a result like this:
103
103
104
- <iframe src =" https://codesandbox.io/embed/new?codemirror=1&highlights=6,7,8,9 " style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;" allow =" geolocation; microphone ; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media ; usb" sandbox =" allow-modals allow-forms allow-popups allow-scripts allow-same-origin " ></iframe >
104
+ <iframe src =" https://codesandbox.io/embed/new?codemirror=1&highlights=6,7,8,9 " style =" width :100% ; height :500px ; border :0 ; border-radius : 4px ; overflow :hidden ;" allow =" accelerometer; ambient-light-sensor ; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment ; usb; vr " sandbox =" allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts " ></iframe >
0 commit comments