Skip to content

A platform for community discussion. Free, open, simple.

DEV: uses innerHTML to decide if fast-edit is possible (#15760)

Joffrey JAFFEUXbb9015e8116f
diff --git a/app/assets/javascripts/discourse/app/components/quote-button.js b/app/assets/javascripts/discourse/app/components/quote-button.js
index 0c1ba275ca3..b4002f8604e 100644
--- a/app/assets/javascripts/discourse/app/components/quote-button.js
+++ b/app/assets/javascripts/discourse/app/components/quote-button.js
@@ -194,7 +194,7 @@ export default Component.extend(KeyEnterEscape, {
if (this._canEditPost) {
const regexp = new RegExp(regexSafeStr(quoteState.buffer), "gi");
- const matches = postBody.match(regexp);
+ const matches = cooked.innerHTML.match(regexp);
if (
quoteState.buffer.length < 1 ||