FIX: Only quote `.cooked` text.
This commit is contained in:
parent
3b20e8b094
commit
2165d0241e
|
@ -28,6 +28,9 @@ export default Ember.Component.extend({
|
||||||
let firstRange, postId;
|
let firstRange, postId;
|
||||||
for (let r = 0; r < selection.rangeCount; r++) {
|
for (let r = 0; r < selection.rangeCount; r++) {
|
||||||
const range = selection.getRangeAt(r);
|
const range = selection.getRangeAt(r);
|
||||||
|
|
||||||
|
if ($(range.endContainer).closest('.cooked').length === 0) return;
|
||||||
|
|
||||||
const $ancestor = $(range.commonAncestorContainer);
|
const $ancestor = $(range.commonAncestorContainer);
|
||||||
|
|
||||||
firstRange = firstRange || range;
|
firstRange = firstRange || range;
|
||||||
|
|
Loading…
Reference in New Issue