mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
Merge pull request #4602 from tgxworld/fix_likes_being_quoted
FIX: Only quote `.cooked` text.
This commit is contained in:
commit
761d524024
@ -32,6 +32,9 @@ export default Ember.Component.extend({
|
||||
let firstRange, postId;
|
||||
for (let r = 0; r < selection.rangeCount; r++) {
|
||||
const range = selection.getRangeAt(r);
|
||||
|
||||
if ($(range.endContainer).closest('.cooked').length === 0) return;
|
||||
|
||||
const $ancestor = $(range.commonAncestorContainer);
|
||||
|
||||
firstRange = firstRange || range;
|
||||
|
Loading…
Reference in New Issue
Block a user