<p>Would you consider an alternative <strong>Matrix</strong> based approach where one rich text field was used for <strong>article-copy</strong> and another separate rich text field, used for the <strong>blockquote</strong>?</p>

<p>So: Matrix field: "Article blocks"</p>

<ul>
<li>Block 1: "Article"</li>
<li>Block 2: "Quote"</li>
</ul>

<p>e.g. (screen shot from a current project...)</p>

<p><img src="https://i.sstatic.net/NRhvz.png" alt="matrix block buttons"></p>

<p>That way you could leverage Matrix functionality and allow more layout control as well - such as alignment etc - to the blockqoutes, and maintain your paragraphs as well.</p>

CC BY-SA 3.0
2016-02-15T16:10:55.217Z
2016-02-15T16:10:55.217Z
Matt P
<p>If I have multiple paragraphs of text in a rich text field, and I select them all and select "Quote" from the formatting menu, the <code>&lt;p&gt;</code> tags are stripped out and replaced with double <code>&lt;br&gt;</code> tags, like so:</p>

<pre><code>&lt;blockquote&gt;
This is some text.&lt;br&gt;&lt;br&gt;
Here's some more text.&lt;br&gt;
&lt;/blockquote&gt;
</code></pre>

<p>Is there any way to preserve the <code>&lt;p&gt;</code> tags, like so?</p>

<pre><code>&lt;blockquote&gt;
    &lt;p&gt;This is some text.&lt;/p&gt;
    &lt;p&gt;Here's some more text.&lt;/p&gt;
&lt;/blockquote&gt;
</code></pre>

<p>I've been through the Redactor documentation and config settings and haven't found anything that seems relevant.</p>

CC BY-SA 3.0
2015-07-13T20:50:02.947Z
I don't think this is currently possible with Redactor. I tried to add custom formatting styles with the `formattingAdd` config, but it looks like you can't nest block elements, just replace one with another, like you're seeing with `p` and `blockquote`. Wrapping multiple block elements with an inline element is also not possible.
carlcs
CC BY-SA 3.0
2015-07-14T22:30:55.547Z
That's unfortunate. AFAIK, it's perfectly valid to place `<p>` tags and other block elements inside `<blockquote>` tags.

Thanks for your response.
Jason Morehead
CC BY-SA 3.0
2015-07-15T06:01:55.423Z
It's also not possible to add inline styles to headings, so no `em` or `span` in `h2`! And Imperavi has no plans changing this :(
carlcs
<redactor><richtext>
Preserving <p> tags inside a <blockquote> tag in a Redactor rich text field
# Preserving <p> tags inside a <blockquote> tag in a Redactor rich text field

(Asked by: username_0 on 2015-07-08)

If I have multiple paragraphs of text in a rich text field, and I select them all and select "Quote" from the formatting menu, the  tags are stripped out and replaced with double  tags, like so:

This is some text.
Here's some more text.


Is there any way to preserve the  tags, like so?

    This is some text.
    Here's some more text.


I've been through the Redactor documentation and config settings and haven't found anything that seems relevant.

**Tags:** redactor, richtext

> **Comments:**
> **username_1**: I don't think this is currently possible with Redactor. I tried to add custom formatting styles with the `formattingAdd` config, but it looks like you can't nest block elements, just replace one with another, like you're seeing with `p` and `blockquote`. Wrapping multiple block elements with an inline element is also not possible.  
> **username_0**: That's unfortunate. AFAIK, it's perfectly valid to place `<p>` tags and other block elements inside `<blockquote>` tags.  Thanks for your response.  
> **username_1**: It's also not possible to add inline styles to headings, so no `em` or `span` in `h2`! And Imperavi has no plans changing this :(  

---

## 1 answers

### Answer by username_2 on 2016-02-15. Score: 4

Would you consider an alternative **Matrix** based approach where one rich text field was used for **article-copy** and another separate rich text field, used for the **blockquote**?

So: Matrix field: "Article blocks"

* Block 1: "Article"
* Block 2: "Quote"

e.g. (screen shot from a current project...)

![matrix block buttons](https://i.sstatic.net/NRhvz.png)

That way you could leverage Matrix functionality and allow more layout control as well - such as alignment etc - to the blockqoutes, and maintain your paragraphs as well.


---

