Answers.Body: <p>If you can, update to the latest Craft build. There was a Redactor update in <a href="http://buildwithcraft.com/updates#build2682" rel="nofollow">Craft 2.4.2682</a> back in July that updated Redactor and fixed issues with iFrames. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T13:23:58.353Z
Answers.Text: Thanks, Aaron. It's odd that Craft shows 1 update when there are actually 5 releases. Still, I should have looked for that more carefully.
Answers.UserDisplayName: Kenneth Benjamin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T17:56:44.683Z
Answers.Text: @KennethBenjamin - that'll make more sense when the plugin store is out. Craft counts as 1 update, then another for each plugin that needs an update.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T03:50:14.353Z
Answers.LastActivityDate: 2015-09-24T03:50:14.353Z
Answers.UserDisplayName: Aaron Berkowitz
Body: <p>I've updated my <code>craft/config/redactor/UserContent.json</code> settings with <code>allowedTags</code> containing <code>iframe</code> but <code>iframe</code> tags are stripped on save. </p>
  
  <p>Other added allowedTags seem fine and iframe works on paste and initial editing, just not after saving.</p>
  
  <p>Running Craft Pro 2.4.2679</p>
  
  <p>I see there were issues with this for older versions of Redactor but they seem to be resolved. Any ideas about how to fix this?</p>
  
  <p>Here's my UserContent.json:</p>
  
  <pre><code>{
      toolbarFixed: true,
      buttons: ['html', 'formatting', 'bold', 'italic', 'underline', 'deleted', 'horizontalrule',
                'unorderedlist', 'orderedlist', 'alignment', 'indent', 'outdent',
                'link', 'image', 'video', 'table'],
      removeEmpty: ['p','strong','em','span','a'],
      cleanStyleOnEnter: true,
      plugins: ['video', 'table'],
      allowedTags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'blockquote', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'div', 'dl', 'dt', 'em', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'map', 'mark', 'menu', 'nav', 'ol', 'optgroup', 'option', 'p', 'picture', 'pre', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'small', 'source', 'span', 'strong', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
  }
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-22T22:35:56.807Z
Comments.Text: Have you tried unchecking both "Clean up HTML?" and "Purify HTML?" in the rich text field's settings?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-23T13:14:36.033Z
Comments.Text: Yes, they are both unchecked. The rich text field is in a matrix field, if that matters in any way.
Comments.UserDisplayName: Kenneth Benjamin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-23T18:57:05.907Z
Comments.Text: And you're sure that the RTE field you're testing with is using your custom redactor `.json` file in its field settings?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-23T22:39:33.633Z
Comments.Text: Yes. I checked the field settings again just now. I've tested with a variety of tags and they are all fine. I've edited my question to show the whole UserContent.json. Note that I also tried it without 'allowedTags' and get the same results, including after clearing Craft caches. It just doesn't like iframes - try it and if you find differently, please let me know. I have tested with YouTube iframes and another iframe with plain html content.
Comments.UserDisplayName: Kenneth Benjamin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T00:53:59.097Z
Comments.Text: I just tested locally on the latest build of Craft both in and outside of Matrix in the latest Chrome with Craft's stock `Standard.json` file by embedding a Youtube iframe and it worked fine after saving the entry.
Comments.UserDisplayName: Brad Bell
Tags: <redactor><richtext>
Title: Rich Text - Redactor doesn't allow iframe even when in allowedTags config setting
ThreadText: # Rich Text - Redactor doesn't allow iframe even when in allowedTags config setting
  
  (Asked by: username_0 on 2015-09-22)
  
  I've updated my `craft/config/redactor/UserContent.json` settings with `allowedTags` containing `iframe` but `iframe` tags are stripped on save.
  
  Other added allowedTags seem fine and iframe works on paste and initial editing, just not after saving.
  
  Running Craft Pro 2.4.2679
  
  I see there were issues with this for older versions of Redactor but they seem to be resolved. Any ideas about how to fix this?
  
  Here's my UserContent.json:
  
  ```
  {
      toolbarFixed: true,
      buttons: ['html', 'formatting', 'bold', 'italic', 'underline', 'deleted', 'horizontalrule',
                'unorderedlist', 'orderedlist', 'alignment', 'indent', 'outdent',
                'link', 'image', 'video', 'table'],
      removeEmpty: ['p','strong','em','span','a'],
      cleanStyleOnEnter: true,
      plugins: ['video', 'table'],
      allowedTags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'blockquote', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'div', 'dl', 'dt', 'em', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'map', 'mark', 'menu', 'nav', 'ol', 'optgroup', 'option', 'p', 'picture', 'pre', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'small', 'source', 'span', 'strong', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
  }
  
  ```
  
  **Tags:** redactor, richtext
  
  > **Comments:**
  > **username_1**: Have you tried unchecking both "Clean up HTML?" and "Purify HTML?" in the rich text field's settings?  
  > **username_0**: Yes, they are both unchecked. The rich text field is in a matrix field, if that matters in any way.  
  > **username_1**: And you're sure that the RTE field you're testing with is using your custom redactor `.json` file in its field settings?  
  > **username_0**: Yes. I checked the field settings again just now. I've tested with a variety of tags and they are all fine. I've edited my question to show the whole UserContent.json. Note that I also tried it without 'allowedTags' and get the same results, including after clearing Craft caches. It just doesn't like iframes - try it and if you find differently, please let me know. I have tested with YouTube iframes and another iframe with plain html content.  
  > **username_1**: I just tested locally on the latest build of Craft both in and outside of Matrix in the latest Chrome with Craft's stock `Standard.json` file by embedding a Youtube iframe and it worked fine after saving the entry.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-09-24. Score: 2 | Accepted answer
  
  If you can, update to the latest Craft build. There was a Redactor update in [Craft 2.4.2682](http://buildwithcraft.com/updates#build2682) back in July that updated Redactor and fixed issues with iFrames.
  
  > **Comments:**
  > **username_0**: Thanks, username_2. It's odd that Craft shows 1 update when there are actually 5 releases. Still, I should have looked for that more carefully.  
  > **username_1**: @username_0 - that'll make more sense when the plugin store is out. Craft counts as 1 update, then another for each plugin that needs an update.  
  
  ---
  
  