Answers.Body: <p>You probably need to set the Redactor <a href="http://imperavi.com/redactor/docs/settings/#set-allowedTags" rel="nofollow">allowedTags</a> config setting to allow <code>&lt;script&gt;</code> tags.</p>
  
  <p>You can see how to define custom Redactor configs in Craft <a href="http://buildwithcraft.com/docs/rich-text-fields#redactor-configs" rel="nofollow">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-19T21:19:20.900Z
Answers.Text: Still had some issues if I turned to code view...ended up just putting embed in template.  Thanks for the help.
Answers.UserDisplayName: frshjb373
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-19T20:12:16.373Z
Answers.LastActivityDate: 2014-09-19T20:12:16.373Z
Answers.UserDisplayName: Brad Bell
Body: <p>I'm trying to add some embed code/script and the rich text field on save puts misc <code>&lt;p&gt;</code> tags around my code. </p>
  
  <p>How do I save code so it keeps it's code formatting without adding an extra stuff?</p>
  
Tags: <field><richtext>
Title: Rich Text Field Adding Tags around script
ThreadText: # Rich Text Field Adding Tags around script
  
  (Asked by: username_0 on 2014-09-19)
  
  I'm trying to add some embed code/script and the rich text field on save puts misc `<p>` tags around my code.
  
  How do I save code so it keeps it's code formatting without adding an extra stuff?
  
  **Tags:** field, richtext
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-09-19. Score: 1
  
  You probably need to set the Redactor [allowedTags](http://imperavi.com/redactor/docs/settings/#set-allowedTags) config setting to allow `<script>` tags.
  
  You can see how to define custom Redactor configs in Craft [here](http://buildwithcraft.com/docs/rich-text-fields#redactor-configs).
  
  > **Comments:**
  > **username_0**: Still had some issues if I turned to code view...ended up just putting embed in template.  Thanks for the help.  
  
  ---
  
  