mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:32:17 +08:00
FIX: Quote button broken on windows.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user