This chapter will cover:<\/p>\n
Embedded content refers to content that is hosted outside of your Pressbooks book, but that you \u2018embed\u2019 so it can been viewed and interacted with within the webbook, saving your reader from needing to visit another site. You will have encountered this kind of content all over the web \u2013 YouTube videos in blog posts, for example, or social media posts in news articles \u2013 and it follows that you may want to add it to your Pressbooks webbook as well.<\/p>\n
Pressbooks supports several different kinds of media and interactive content. Each of these behave in slightly different ways and have different input methods, and when it comes to embedded content, it is important to understand why some content is allowed and other content is not.<\/p>\n
One kind of embedded content we don’t allow is iframes; by default, WordPress (on which Pressbooks is built) heavily restricts the use of iframes for security reasons. Instead, we avoid the need to use iframes altogether by allowing content from approved sites to be embedded without them – all you need is the URL and the system handles the rest!<\/p>\n
To embed approved content, all you need to do is drop the URL of the video, audio or other element (not<\/strong> the embed code with iframe tags wrapping it) directly into the visual editor, and Pressbooks will automagically change the URL to an embed.<\/p>\n