FIX: Quote button broken on windows.

This commit is contained in:
Guo Xiang Tan 2017-05-15 08:26:48 +08:00
parent 42de1cc977
commit dfc9a27dc4
1 changed files with 1 additions and 2 deletions

View File

@ -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);