There are many activities and tools within LEO which make use of the Text Editor to create content. This includes (but is not limited to) a Book, Page, Quiz, Assignment, and a Label.
- To add a Label, please read our LEO Guide - How to add a Label to your unit.
- To add a Page, please read our LEO Guide - How to add a Page to your LEO unit.
- To add a Book, please read our LEO Guide - How to set up a Book.
Embedding a video within existing content
If you're unfamiliar with HTML code, browsing the HTML code for a Text Editor may initially appear very confusing. This is because you're looking at the page text and the code that sits behind the page text. Usually this code is hidden by the Text Editor to make editing content easier for users.
If you need to embed a video within content you've previously created, it is sometimes useful to add placeholder text for your video first. By using a line of text such as "add video here" in the content, you can easily find and replace this text with your embed code when in the HTML source. To do this:
- Create a new paragraph in your content by clicking 'Enter' at the end of a line, then type "VIDEO GOES HERE". We can replace this line of text with the embed code in the next step.
- Click the 'Edit HTML Source' button. Find the placeholder text in the HTML code and select it (highlight the whole line including the <p> and </p> tags surrounding it):
- Paste (Control+v on PC / Command+v on Mac) the YouTube embed code in its place:
- Click the 'Update' button. When you return to the Text Editor you should now see the embedded video inside the content.
The direct video 'Share' link
After you click the 'Share' link for a YouTube video, but before your click the 'Embed' option, you will see a web address highlighted in the 'Share' window. This link is a direct web address that you can use when adding a link in a Text Editor field.