<p>In my tests the <a href="http://imperavi.com/redactor/docs/settings/clean/#setting-paragraphize" rel="nofollow">paragraphize</a> setting did not seem to fully prevent paragraphs from being generated. Instead <code>{ linebreaks: true }</code> seems to reliably convert all would-be paragraphs to <code>&lt;br&gt;</code> tags.</p>

<p>If you're really serious about sticking to single lines then you can go even further and block all forms of line breaks:</p>

<pre><code>{
    deniedTags: ['br'],
    enterKey: false,
    pastePlainText: true,
    linebreaks: true
}
</code></pre>

<p>The only flaw with this seems to be that linebreaks still show up in the editor if they're pasted in, but they are stripped when the entry is saved.</p>

CC BY-SA 3.0
2015-04-09T21:58:25.830Z
I tried removing <p>'s by way of allowedTags, deniedTags, and paragraphize: false. After testing, all seemed to allow p's to get in one way or another. The above settings have worked much better.
philzelnar
CC BY-SA 3.0
2015-02-20T17:47:05.157Z
2015-04-13T13:07:16.570Z
2015-04-13T13:07:16.570Z
Dom Stubbs
<p>In <code>craft/config/redactor/...json</code> add a line <code>paragraphize: false</code></p>

CC BY-SA 3.0
2014-12-23T09:52:54.180Z
2014-12-23T09:52:54.180Z
Vitaliy  Badalov
<p>Is it possible to configure redactor so it will only accept a single line of text and not wrap it's content in a paragraph tag? Essentially, I'm looking to allow an editor to submit some formatted text (bold, italic, links) but place that inside an existing paragraph tag that is coming out of my templates.</p>

CC BY-SA 3.0
2015-10-26T16:38:31.607Z
wish this question were in stackoverflow, but hey! i found what i was looking for anyway.
Randy L
<templating><redactor>
Redactor Single Line Mode
# Redactor Single Line Mode

(Asked by: username_0 on 2014-12-23)

Is it possible to configure redactor so it will only accept a single line of text and not wrap it's content in a paragraph tag? Essentially, I'm looking to allow an editor to submit some formatted text (bold, italic, links) but place that inside an existing paragraph tag that is coming out of my templates.

**Tags:** templating, redactor
> **Comments:**
> **username_1**: wish this question were in stackoverflow, but hey! i found what i was looking for anyway.  

---

## 2 answers

### Answer by username_4 on 2014-12-23. Score: 4 | Accepted answer

In `craft/config/redactor/...json` add a line `paragraphize: false`


---

### Answer by username_2 on 2015-02-20. Score: 5

In my tests the paragraphize setting did not seem to fully prevent paragraphs from being generated. Instead { linebreaks: true } seems to reliably convert all would-be paragraphs to  tags.
If you're really serious about sticking to single lines then you can go even further and block all forms of line breaks:
{
    deniedTags: ['br'],
    enterKey: false,
    pastePlainText: true,
    linebreaks: true
}

The only flaw with this seems to be that linebreaks still show up in the editor if they're pasted in, but they are stripped when the entry is saved.

> **Comments:**
> **username_3**: I tried removing <p>'s by way of allowedTags, deniedTags, and paragraphize: false. After testing, all seemed to allow p's to get in one way or another. The above settings have worked much better.  

---

