@@ -6,10 +6,10 @@ description: Embed a sandbox in docs, blog posts, Medium, and other websites.
66
77## What is an Embed?
88
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.
1313
1414CodeSandbox has a separate application for the embed. This application is
1515specifically 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.
1919
2020## Generate an Embed URL
2121
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.
2424
2525![ Share Button] ( ./images/share-button.png )
2626
@@ -72,14 +72,14 @@ Use this code to embed:
7272<iframe
7373 src =" https://codesandbox.io/embed/new?codemirror=1"
7474 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 "
7777></iframe >
7878```
7979
8080That will give to a result like this:
8181
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 >
8383
8484### Code Example Embed
8585
@@ -94,11 +94,11 @@ Use this code to embed:
9494<iframe
9595 src =" https://codesandbox.io/embed/new?codemirror=1&highlights=6,7,8,9"
9696 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 "
9999></iframe >
100100```
101101
102102That will give to a result like this:
103103
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