From 2917879525b062a0f8f85faedd36af7ddaf70e6d Mon Sep 17 00:00:00 2001 From: Thomas Hanke Date: Thu, 13 Oct 2016 17:22:16 +0200 Subject: [PATCH] Workaround for IE9 Only a little Fix. Check it. --- src/core/wrappedselection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/wrappedselection.js b/src/core/wrappedselection.js index 1168211d..0fcdc235 100644 --- a/src/core/wrappedselection.js +++ b/src/core/wrappedselection.js @@ -170,13 +170,17 @@ if (chromeMatch && parseInt(chromeMatch[1]) >= 36) { selectionSupportsMultipleRanges = false; } else { + // IE9 Workaround + // Todo: Is this solution well? + selectionSupportsMultipleRanges = false; + /* IE9 Bug - r2 is empty var r2 = r1.cloneRange(); r1.setStart(textNode, 0); r2.setEnd(textNode, 3); r2.setStart(textNode, 2); sel.addRange(r1); sel.addRange(r2); - selectionSupportsMultipleRanges = (sel.rangeCount == 2); + selectionSupportsMultipleRanges = (sel.rangeCount == 2);*/ } }