<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>

CC BY-SA 3.0
2016-05-23T18:54:32.500Z
As of 5/22 this bug has been fixed in Redactor. https://imperavi.com/redactor/log/
Aaron Bushnell
CC BY-SA 3.0
2016-05-18T13:36:16.920Z
2016-05-18T13:36:16.920Z
Aaron Bushnell
<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>

CC BY-SA 3.0
2016-05-18T14:23:10.517Z
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.
Jamie Wade
CC BY-SA 3.0
2016-05-23T18:55:41.147Z
Hey @JamieWade, it looks like Redactor has corrected this issue [in the latest release as of 5/22](https://imperavi.com/redactor/log/).
Aaron Bushnell
<redactor><richtext><bug>
Redactor adding extra paragraph and br tag when entering and exiting HTML source mode
# 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  prepended to the content.
Here's a GIF of this issue.

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 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.  
> **username_0**: Hey @JamieWade, 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/  

---

