# Quick Quote Theme Component

**URL:** https://meta.discourse.org/t/quick-quote-theme-component/143621
**Category:** Theme component
**Created:** [March 7, 2020, 7:48pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621 "2020-03-07T19:48:50Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [April 2, 2023, 11:45pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/41 "2023-04-02T23:45:29Z")

</div>

[here is the code for it](https://meta.discourse.org/t/topic-footer-reply-button-can-break-the-thread/260263/3)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [April 2, 2023, 11:46pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/42 "2023-04-02T23:46:40Z")

</div>

> [@treeteebee](#):
>
> Just from the user’s perspective, sometimes they just click on the first “reply” button they see on mobile and then they end quoting the original post which isn’t necessary

But surely that’s true for every post, not just the first one?

I really am not convinced quoting the very last post, wherever you are in the Topic, makes that much sense in any case? I would definitely set `quick quote post location threshold` to at least 1 as 0 is definitely wasteful of space.

---

<div class="post-metadata">

### Author: ![wenqin](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wenqin](https://meta.discourse.org/u/wenqin)
#### Post date: [September 2, 2023, 6:30am UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/43 "2023-09-02T06:30:38Z")

</div>

so good！！！

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 27, 2023, 3:44pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/44 "2023-09-27T15:44:22Z")

</div>

Looks like this component isn’t working as of the latest Discourse update. I had to disable it this morning on one of my instances because all my reply buttons stopped working (core was updated last night). @merefield

---

<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: [September 27, 2023, 3:56pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/45 "2023-09-27T15:56:51Z")

</div>

Just as an addition

> [@Unable to reply due to javascript error \[Quick Quote theme component\]](https://meta.discourse.org/t/help-required-unable-to-reply-due-to-javascript-error/280298/4):
>
> Hi @Festinger This file doesn’t exist in Discourse core, so I think it must be a theme/plugin issue. Do you have [Quick Quote Theme Component](https://meta.discourse.org/t/quick-quote-theme-component/143621) installed? If so, please could you try disabling it and see if it helps? (cc @merefield - looks like that theme might need some tweaks following some recent core changes)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 27, 2023, 4:54pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/46 "2023-09-27T16:54:51Z")

</div>

As a free addon this is on my radar but not my first priority.

I will take a look soon.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 27, 2023, 9:03pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/47 "2023-09-27T21:03:26Z")

</div>

This should be fixed. Let me know if you have any further issues:

[https://github.com/merefield/discourse-quick-quote/commit/e0b2a228b80c34882c787b8b666fa1910c662292](https://github.com/merefield/discourse-quick-quote/commit/e0b2a228b80c34882c787b8b666fa1910c662292)

@Festinger @JammyDodger

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 27, 2023, 9:16pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/48 "2023-09-27T21:16:04Z")

</div>

Thanks for the quick fix Robert 🙂

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [March 21, 2025, 4:38am UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/49 "2025-03-21T04:38:05Z")

</div>

hmmm I think this component functionality might have broken in a recent update. 🤔

@pfaffman added this (but didn’t want to add his own post?): [Reply Quotes No Longer Appearing Automatically](https://meta.discourse.org/t/reply-quotes-no-longer-appearing-automatically/358269)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 21, 2025, 3:17pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/50 "2025-03-21T15:17:43Z")

</div>

I can PR, if you want @merefield.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 21, 2025, 3:19pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/51 "2025-03-21T15:19:08Z")

</div>

Lovely, thank you!

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 21, 2025, 5:35pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/52 "2025-03-21T17:35:15Z")

</div>

Here:

[https://github.com/merefield/discourse-quick-quote/pull/3](https://github.com/merefield/discourse-quick-quote/pull/3)

Also, it is worth noting that it fixes an issue with replacing links.  
The regex was too greedy and would delete any text between two links.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 21, 2025, 5:40pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/53 "2025-03-21T17:40:15Z")

</div>

responded.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 21, 2025, 6:26pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/54 "2025-03-21T18:26:33Z")

</div>

Great piece of work, thanks @Arkshine, merged! 🚀

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [March 21, 2025, 7:57pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/55 "2025-03-21T19:57:03Z")

</div>

you guys are awesome. thanks Robert and Arkshine for the quick fix 🚀 🤩

---

<div class="post-metadata">

### Author: ![WolfpackFan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolfpackfan/32/509942_2.png) [@WolfpackFan](https://meta.discourse.org/u/WolfpackFan)
#### Post date: [July 2, 2025, 2:42pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/56 "2025-07-02T14:42:43Z")

</div>

I’m guessing I’m doing something silly, but I am not seeing this plugin listed as available in `<mysite>/admin/plugins` after installing it.

I have added the git repo to my app.yml and rebuilt the app. I also entered the app (launcher enter app) and verified in /var/www/discourse/plugins directory that the discourse-quick-quote folder is there.

Any ideas?

Build: 3.5.0.beta8-dev (64b738bc0a)  
Plugin Repo added to app.yml: [https://github.com/merefield/discourse-quick-quote.git](https://github.com/merefield/discourse-quick-quote.git)

---

<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: [July 2, 2025, 2:44pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/57 "2025-07-02T14:44:35Z")

</div>

> [@WolfpackFan](#):
>
> Any ideas?

Yes. This is a theme component, not a plugin. So you install it as explained in the topic linked in the first post ([Installing a theme or theme component](https://meta.discourse.org/t/install-a-theme-or-theme-component/63682)), and you can find it at Admin \> Customize \> Themes & Components.

---

<div class="post-metadata">

### Author: ![WolfpackFan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolfpackfan/32/509942_2.png) [@WolfpackFan](https://meta.discourse.org/u/WolfpackFan)
#### Post date: [July 2, 2025, 2:49pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/58 "2025-07-02T14:49:10Z")

</div>

Thank you again, Moin! You are awesome 🙂

---

<div class="post-metadata">

### Author: ![donaldsoncd](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@donaldsoncd](https://meta.discourse.org/u/donaldsoncd)
#### Post date: [August 9, 2025, 2:04pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/59 "2025-08-09T14:04:13Z")

</div>

Hello! Not sure if this part of the recent mentions of the component being broken, but it seems that the new Rich Text Composer has broken this in someway potentially.

If I click to reply to a post like this example one:

 ![Screenshot 2025-08-09 at 07.58.15](https://global.discourse-cdn.com/meta/original/4X/3/c/7/3c71e46aca07a24f63fea71399ec399c44361d01.png)

The quick quote function works, but the quote doesn’t render nicely within the Rich Text composer. It appears as some kind of precomposed code:

 ![Screenshot 2025-08-09 at 07.58.42](https://global.discourse-cdn.com/meta/original/4X/0/d/4/0d4c13211a045655d725e6c3a6b921e1917d2f2e.png)

I’m able to fix it by deleting the `<p>` and `</p>` and then toggling between the markdown composer and the rich text composer, but this isn’t ideal for my users (or people in general, I imagine).

Any chance someone knows what is going wrong and if there’s a way to fix it? Thanks!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 9, 2025, 2:20pm UTC](https://meta.discourse.org/t/quick-quote-theme-component/143621/60 "2025-08-09T14:20:40Z")

</div>

Yeah this wasn’t written with the rich text composer in mind since it pre-dates it by several years.

I’ve made an explicit note of this limitation in the OP.

I do not have time to look at this but if anyone wants to PR I will definitely review.

[Previous page](https://meta.discourse.org/t/quick-quote-theme-component/143621.md?page=2)

[Next page](https://meta.discourse.org/t/quick-quote-theme-component/143621.md?page=4)
