mirror of
https://github.com/discourse/discourse.git
synced 2026-08-12 05:55:39 -05:00
FIX: Only quote .cooked text.
This commit is contained in:
@@ -28,6 +28,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;
|
||||
|
||||
Reference in New Issue
Block a user