diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-15 14:42:11 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-15 14:42:11 +0200 |
commit | 3cdf97f0030d79f5dc77b1136d820c9069213f35 (patch) | |
tree | 2c961d929259619071c5a3d9a1e3f7918f6a9980 | |
parent | 2bf9e911010c2975f5aad97c133c70f46f099c44 (diff) | |
download | forums-3cdf97f0030d79f5dc77b1136d820c9069213f35.tar forums-3cdf97f0030d79f5dc77b1136d820c9069213f35.tar.gz forums-3cdf97f0030d79f5dc77b1136d820c9069213f35.tar.bz2 forums-3cdf97f0030d79f5dc77b1136d820c9069213f35.tar.xz forums-3cdf97f0030d79f5dc77b1136d820c9069213f35.zip |
[ticket/14163] Properly fix select all for code tag in Edge
PHPBB3-14163
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 8e5b257ba4..99f3108fad 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -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 |