<p>You've probably got "Purify HTML" checked under your Rich Text field's settings and that's stripping iframe code.</p>

<p>You should really only have that checked if you're accepting input from untrusted sources using the Rich Text field on the front-end of your site.  Presumably all users using the control panel are trusted enough not to input malicious code into the site.</p>

CC BY-SA 3.0
2016-02-28T11:56:14.350Z
Thank you! I never actually knew exactly what that was until now :)
Shealan
CC BY-SA 3.0
2016-02-26T17:40:36.310Z
2016-02-26T17:40:36.310Z
Brad Bell
<p>I've tried to integrate the video.js plugin for Redactor. It allows me to insert a YouTube embed (as expected) but the iframe code is stripped out on save. Using the latest Craft 2.5 build. Anyone experienced the same? Solutions?</p>

<redactor>
Redactor video plugin not working
# Redactor video plugin not working

(Asked by: username_0 on 2016-02-26)

I've tried to integrate the video.js plugin for Redactor. It allows me to insert a YouTube embed (as expected) but the iframe code is stripped out on save. Using the latest Craft 2.5 build. Anyone experienced the same? Solutions?

**Tags:** redactor


---

## 1 answers

### Answer by username_1 on 2016-02-26. Score: 11 | Accepted answer

You've probably got "Purify HTML" checked under your Rich Text field's settings and that's stripping iframe code.

You should really only have that checked if you're accepting input from untrusted sources using the Rich Text field on the front-end of your site. Presumably all users using the control panel are trusted enough not to input malicious code into the site.

> **Comments:**
> **username_0**: Thank you! I never actually knew exactly what that was until now :)  

---

