diff --git a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe-highlight.png b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe-highlight.png new file mode 100644 index 0000000000..96970d099a Binary files /dev/null and b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe-highlight.png differ diff --git a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe_highlight.png b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe_highlight.png deleted file mode 100644 index 4787cb1a03..0000000000 Binary files a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/assets/iframe_highlight.png and /dev/null differ diff --git a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md index 6ce53edd18..0bcfac877f 100644 --- a/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md +++ b/content/arduino-cloud/04.cloud-editor/embedding-create-iframes/embedding-create-iframes.md @@ -4,27 +4,27 @@ description: 'Learn about different methods when embedding your sketches in a we author: 'Karl Söderby' --- -The Web Editor is a great tool for creating and uploading programs while also collecting all of your sketches in one place. Another great feature is embedding them as iframes, such as articles, blogposts or journals. +The Cloud Editor is a great tool for creating and uploading programs while also collecting all of your sketches in one place. Another great feature is embedding them as iframes, such as articles, blogposts or journals. -To embed an iframe is very easy, and we just need to copy and paste a link from our sketch in the Web Editor. But we can also do a series of modifications to that iframe, and in this tutorial we will take a look at how to do that. +To embed an iframe is very easy, and we just need to copy and paste a link from our sketch in the Cloud Editor. But we can also do a series of modifications to that iframe, and in this tutorial we will take a look at how to do that. ## Let's start -First of all, we need to navigate to the [Web Editor](https://create.arduino.cc/editor). If we do not have an account, we can register one with just a few simple steps. +First of all, we need to navigate to the [Cloud Editor](https://create.arduino.cc/editor). If we do not have an account, we can register one with just a few simple steps. -Then, we need to have a code. In this tutorial, we are just going to use the good old **blink** example. When we have our sketch ready, click on the **share** button next to the port selection tool. This will open up a new window, that will have two fields: **link** and **iframe**. Copy the iframe field. +Then, we need to have a code. In this tutorial, we are just going to use the good old **blink** example. When we have our sketch ready, click on the **share** button next to the serial monitor tool. This will open up a new window, that will have two fields: **link** and **embed**. Copy the embed field. -![iframe field](assets/iframe_highlight.png) +![embed field](assets/iframe-highlight.png) -It should look something like this, where `{YOUR_ACCOUNT}` and `{SKETCH_URL}` is replaced by your own credentials. +It should look something like this: ```markup - + ``` This iframe can now simply be embedded in a HTML page, and it will look like this: - + But there are many ways we can modify the iframe to look different. So let's take a look the available modifications we can make! @@ -39,12 +39,12 @@ To do this, we just need to add the following code to the end of the URL: ``` The result is the following: - + And the full URL should look like this: ```markup - + ``` @@ -58,12 +58,12 @@ Next is the highlighting feature. To use this, simply add the following lines to The result is that line 3 and 4 are highlighted: - + And the full URL should look like this: ```markup - + ``` You can highlight as many lines as you want, and it is easily configurable. For example, if we want to highlight line 1, 3 and 5-8, we simply need to add the following to the URL: @@ -90,7 +90,7 @@ style="height:200px;width:50%;margin:10px 0" Which will look like this: - + ## Automatically re-sizing your sketches @@ -104,9 +104,9 @@ And then using the class `arduino-sketch-iframe` in your HTML element. ## Summary -There are several cool ways of working with iframes from the Web Editor, and it is a really easy process that requires very little coding. +There are several cool ways of working with iframes from the Cloud Editor, and it is a really easy process that requires very little coding. -The Web Editor helps you keep track on all of your sketches, and with the iframes, including your projects on other pages has never been easier. +The Cloud Editor helps you keep track on all of your sketches, and with the iframes, including your projects on other pages has never been easier. ### More tutorials