Trunk User GuideTrunk User Guide Rich Text EditorHow do I embed a YouTube video in a text box?

How do I embed a YouTube video in a text box?

Locate the Youtube video you would like to embed in a text box. Click Share.

Locate the Youtube video you would like to embed in a text box. Click Share.

This displays the YouTube sharing panel.

Click Embed.

Click Embed.

This displays the YouTube video embed code.

Copy the YouTube embed code to your computer's clipboard (CTRL-C - PC or COMMAND-C MAC).

Copy the YouTube embed code to your computer's clipboard (CTRL-C - PC or COMMAND-C MAC).

Tip: Uncheck "Show suggested videos when the video finishes"

In the text box, click Source

In the text box, click Source

This displays the HTML code for the text box.

Position your cursor where you would like the video embedded, then paste the YouTube embed code (CTRL-V - PC or COMMAND-V - MAC).

Position your cursor where you would like the video embedded, then paste the YouTube embed code (CTRL-V - PC or COMMAND-V - MAC).

Click Source again.

Click Source again.

This returns the text box display to normal editing mode. The embedded YouTube video will display as a box marked "iframe". When the item using the text box is posted, it displays the embedded YouTube video.

Note: You may see the following Alert:

Alert: The iframe tag contained an attribute that we could not process. The allowfullscreen attribute had a value of "". This value could not be accepted for security reasons. We have chosen to remove this attribute from the tag and leave everything else in place so that we could process the input.

This alert can be ignored as Trunk automatically strips out any unsafe code. Click Post, and the embedded YouTube video will be displayed.