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++) {
|
||||
const range = selection.getRangeAt(r);
|
||||
|
||||
const withinCooked = range.startContainer.parentNode.closest('.cooked');
|
||||
if (!withinCooked || withinCooked.length === 0) return;
|
||||
if ($(range.startContainer.parentNode).closest('.cooked').length === 0) return;
|
||||
|
||||
const $ancestor = $(range.commonAncestorContainer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue