mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
DEV: uses innerHTML to decide if fast-edit is possible (#15760)
We don't need raw to decide if we can fast edit or not, we will fetch the raw later when we do the replacement, but this step can be done directly from innerHTML.
This commit is contained in:
parent
dad2e5e513
commit
bb9015e811
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user