快速引用主题组件

here is the code for it

2 个赞

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.

1 个赞

so good!!!

2 个赞

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

2 个赞

Just as an addition

3 个赞

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

I will take a look soon.

2 个赞

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

@Festinger @JammyDodger

6 个赞

Thanks for the quick fix Robert :slight_smile:

2 个赞

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

@pfaffman added this (but didn’t want to add his own post?): Reply Quotes No Longer Appearing Automatically

2 个赞

I can PR, if you want @merefield.

4 个赞

Lovely, thank you!

3 个赞

Here:

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.

7 个赞

responded.

3 个赞

Great piece of work, thanks @Arkshine, merged! :rocket:

6 个赞

you guys are awesome. thanks Robert and Arkshine for the quick fix :rocket: :star_struck:

8 个赞

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

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), and you can find it at Admin > Customize > Themes & Components.

2 个赞

Thank you again, Moin! You are awesome :slightly_smiling_face:

2 个赞

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:

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:

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!

1 个赞

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.

2 个赞