# RTE removes quotation marks within wrap syntax

**URL:** https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488
**Category:** Bug
**Tags:** composer
**Created:** [June 30, 2026, 8:57pm UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488 "2026-06-30T20:57:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 30, 2026, 8:57pm UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488/1 "2026-06-30T20:57:02Z")

</div>

I noticed that the quotation marks within the theme install wrap on [Homepage Feature](https://meta.discourse.org/t/homepage-feature/144264/1?silent=true) had disappeared after an edit.

I think the RTE caused this. I tried to find a minimal repro:

1. Paste the following into the composer in markdown mode

```plaintext
[wrap=theme-install-button repo-name="Homepage Feature" repo-url=https://github.com/discourse/discourse-homepage-feature-component]
Install this theme component

[/wrap]

test 

```

1. Use the toggle to switch to RTE
2. Use the toggle again to check whether the quotation marks around “Homepage Feature” are still there. In my testing they were there as expected.
3. Add #official to the draft

```plaintext
[wrap=theme-install-button repo-name="Homepage Feature" repo-url=https://github.com/discourse/discourse-homepage-feature-component]
Install this theme component

[/wrap]

test #official

```

1. Toggle to RTE again and toggle back to Markdown mode  
**Expected result:** The quotation marks are still there.  
**Actual result:** The quotation marks are missing, which results in users using the button being asked if they want to install “Homepage”.  
 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/0/3f0bfec5ef09f66728bc1fd3d66ed4f9a4bcf9ca.png)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [July 2, 2026, 6:54pm UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488/2 "2026-07-02T18:54:35Z")

</div>

I can reproduce, thanks for the steps! @renato this seems like when prosemirror processes the post we’re not accounting for bbcode values with spaces?

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [July 3, 2026, 7:30pm UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488/3 "2026-07-03T19:30:27Z")

</div>

Thank you for the report, this should fix it: [FIX: Keep quotes around wrap bbcode attribute values with spaces - Pull Request #41429 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/41429)

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [July 7, 2026, 2:57pm UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488/4 "2026-07-07T14:57:46Z")

</div>


