Answers.Body: <p>This appears to be an issue with Redactor itself. Their example allowing you to edit the <a href="https://imperavi.com/redactor/examples/source" rel="nofollow">source code of a field has the same bug</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-23T18:54:32.500Z
Answers.Text: As of 5/22 this bug has been fixed in Redactor. https://imperavi.com/redactor/log/
Answers.UserDisplayName: Aaron Bushnell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-18T13:36:16.920Z
Answers.LastActivityDate: 2016-05-18T13:36:16.920Z
Answers.UserDisplayName: Aaron Bushnell
Body: <p>I'm currently on the latest version of Craft (2.6.2785). When I edit Redactor content I have no issues, but if I enter HTML mode and exit it I end up with <code>&lt;p&gt;&lt;br&gt;&lt;/p&gt;</code> prepended to the content.</p>
  
  <p>Here's a GIF of this issue.
  <img src="https://cl.ly/021k1n1Q1n1d/Screen%20Recording%202016-05-18%20at%2009.26%20AM.gif" alt="Redactor issue with paragraph and br tags"></p>
  
  <p>I updated from version 2.5.2767 and that version does not have this bug.</p>
  
  <p>In case it helps, here's the JSON config for the Redactor field I'm referring to:</p>
  
  <pre><code>{
    "buttons": ["html", "formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "file", "image", "video"],
    "plugins": ["fullscreen", "video", "table"],
    "toolbarFixed": true
  }
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-18T14:23:10.517Z
Comments.Text: Hi Aaron, this is definitely a Redactor bug and not something the Craft community can really help with. It's also something we are more than aware of; I have the same bug on a lot of my sites, which is why I have installed Pixel & Tonics Redactor 1 plugin for now: https://github.com/pixelandtonic/RedactorI. We just have to wait for Redactor bug fixes to be released I'm afraid.
Comments.UserDisplayName: Jamie Wade
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T18:55:41.147Z
Comments.Text: Hey @JamieWade, it looks like Redactor has corrected this issue [in the latest release as of 5/22](https://imperavi.com/redactor/log/).
Comments.UserDisplayName: Aaron Bushnell
Tags: <redactor><richtext><bug>
Title: Redactor adding extra paragraph and br tag when entering and exiting HTML source mode
ThreadText: # Redactor adding extra paragraph and br tag when entering and exiting HTML source mode
  
  (Asked by: username_0 on 2016-05-18)
  
  I'm currently on the latest version of Craft (2.6.2785). When I edit Redactor content I have no issues, but if I enter HTML mode and exit it I end up with `<p><br></p>` prepended to the content.
  
  Here's a GIF of this issue.
  ![Redactor issue with paragraph and br tags](https://cl.ly/021k1n1Q1n1d/Screen%20Recording%202016-05-18%20at%2009.26%20AM.gif)
  
  I updated from version 2.5.2767 and that version does not have this bug.
  
  In case it helps, here's the JSON config for the Redactor field I'm referring to:
  
  ```
  {
    "buttons": ["html", "formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "file", "image", "video"],
    "plugins": ["fullscreen", "video", "table"],
    "toolbarFixed": true
  }
  
  ```
  
  **Tags:** redactor, richtext, bug
  
  > **Comments:**
  > **username_1**: Hi username_0, this is definitely a Redactor bug and not something the Craft community can really help with. It's also something we are more than aware of; I have the same bug on a lot of my sites, which is why I have installed Pixel & Tonics Redactor 1 plugin for now: https://github.com/pixelandtonic/RedactorI. We just have to wait for Redactor bug fixes to be released I'm afraid.  
  > **username_0**: Hey @username_1, it looks like Redactor has corrected this issue [in the latest release as of 5/22](https://imperavi.com/redactor/log/).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-05-18. Score: 0 | Accepted answer
  
  This appears to be an issue with Redactor itself. Their example allowing you to edit the [source code of a field has the same bug](https://imperavi.com/redactor/examples/source).
  
  > **Comments:**
  > **username_0**: As of 5/22 this bug has been fixed in Redactor. https://imperavi.com/redactor/log/  
  
  ---
  
  