How to embed a video in the body of an article

It's possible to embed a video inline in the body of the article itself instead of as a separate video module.

You can do this by going to the site that hosts the video, such as Youtube or Vimeo, and grabbing the embed code that they offer.

example of youtube embed code

The code should look like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" 
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; 
picture-in-picture" allowfullscreen></iframe>

This code can be added to the text block of the article. To add the embed code into your article, you'll need to click the 'Source' button to add the HTML code:

source.png

 

Click 'Source' again after adding the code to return to the regular editor.

Don't forget to save the text of your article when you're done.

Was this article helpful?
1 out of 1 found this helpful