Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-09T21:58:25.830Z
Answers.Text: 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.
Answers.UserDisplayName: philzelnar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-02-20T17:47:05.157Z
Answers.LastActivityDate: 2015-04-13T13:07:16.570Z
Answers.LastEditDate: 2015-04-13T13:07:16.570Z
Answers.UserDisplayName: Dom Stubbs
Answers.Body: <p>In <code>craft/config/redactor/...json</code> add a line <code>paragraphize: false</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-23T09:52:54.180Z
Answers.LastActivityDate: 2014-12-23T09:52:54.180Z
Answers.UserDisplayName: Vitaliy  Badalov
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-26T16:38:31.607Z
Comments.Text: wish this question were in stackoverflow, but hey! i found what i was looking for anyway.
Comments.UserDisplayName: Randy L
Tags: <templating><redactor>
Title: Redactor Single Line Mode
ThreadText: # 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](http://imperavi.com/redactor/docs/settings/clean/#setting-paragraphize) setting did not seem to fully prevent paragraphs from being generated. Instead `{ linebreaks: true }` seems to reliably convert all would-be paragraphs to `<br>` 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.  
  
  ---
  
  