FIX: Quote button broken on windows.
This commit is contained in:
parent
42de1cc977
commit
dfc9a27dc4
|
@ -33,8 +33,7 @@ export default Ember.Component.extend({
|
||||||
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);
|
||||||
|
|
||||||
const withinCooked = range.startContainer.parentNode.closest('.cooked');
|
if ($(range.startContainer.parentNode).closest('.cooked').length === 0) return;
|
||||||
if (!withinCooked || withinCooked.length === 0) return;
|
|
||||||
|
|
||||||
const $ancestor = $(range.commonAncestorContainer);
|
const $ancestor = $(range.commonAncestorContainer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue