From 7947ea1aa169daf8b0fc37e131e65d31741ea355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bu=CC=80i=20Vie=CC=A3=CC=82t=20Tha=CC=80nh?= Date: Sun, 21 Apr 2019 15:21:30 +0700 Subject: [PATCH] init features.selectionSupportsMultipleRanges = true for Firefox --- src/core/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/api.ts b/src/core/api.ts index 6c5a71a0..bffb5228 100644 --- a/src/core/api.ts +++ b/src/core/api.ts @@ -34,7 +34,7 @@ export const features: Features = { crashyTextNodes: false, implementsWinGetSelection: true, implementsDocSelection: false, - selectionSupportsMultipleRanges: false, + selectionSupportsMultipleRanges: window.navigator.userAgent.indexOf("Firefox") > -1, implementsControlRange: false, collapsedNonEditableSelectionsSupported: true, };