diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs index 09b3cd2daff..2734ea4c3d4 100644 --- a/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs +++ b/app/assets/javascripts/discourse/app/components/post-text-selection-toolbar.gjs @@ -235,6 +235,7 @@ export default class PostTextSelectionToolbar extends Component { diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs index 66667b22096..92a7689c00b 100644 --- a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs +++ b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs @@ -209,6 +209,7 @@ export default class PostTextSelection extends Component { topic: this.args.topic, quoteState, insertQuote: this.insertQuote, + buildQuote: this.buildQuote, hideToolbar: this.hideToolbar, }, }; @@ -271,6 +272,11 @@ export default class PostTextSelection extends Component { await this.hideToolbar(); } + @action + async buildQuote() { + return await this.args.buildQuoteMarkdown(); + } +