Merge branch '3.1.x'

* 3.1.x:
  [ticket/14163] Properly fix select all for code tag in Edge
This commit is contained in:
Tristan Darricau 2015-10-12 11:52:18 +02:00
commit 7bbce946de

View file

@ -159,7 +159,10 @@ function selectCode(a) {
try {
s.setBaseAndExtent(e, 0, e, l);
} catch (error) {
s.setBaseAndExtent(e, 0, e, 1);
r = document.createRange();
r.selectNodeContents(e);
s.removeAllRanges();
s.addRange(r);
}
}
// Firefox and Opera