مكون سمة اقتباس سريع

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)