diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-12 11:52:18 +0200 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-12 11:52:18 +0200 |
| commit | d92baaa2f72400c9814f9e0a5638532e549a9446 (patch) | |
| tree | 5cc10089886b2a845d460993cfd01b1736c43eec | |
| parent | bc34217c1476170254e6e1f0209b33e5f167cc33 (diff) | |
| parent | 3cdf97f0030d79f5dc77b1136d820c9069213f35 (diff) | |
| download | forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.gz forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.bz2 forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.xz forums-d92baaa2f72400c9814f9e0a5638532e549a9446.zip | |
Merge pull request #3908 from marc1706/ticket/14163
[ticket/14163] Properly fix select all for code tag in Edge
* marc1706/ticket/14163:
[ticket/14163] Properly fix select all for code tag in Edge
| -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 |
