mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
commit
d92baaa2f7
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,10 @@ function selectCode(a) {
|
||||||
try {
|
try {
|
||||||
s.setBaseAndExtent(e, 0, e, l);
|
s.setBaseAndExtent(e, 0, e, l);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
s.setBaseAndExtent(e, 0, e, 1);
|
r = document.createRange();
|
||||||
|
r.selectNodeContents(e);
|
||||||
|
s.removeAllRanges();
|
||||||
|
s.addRange(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Firefox and Opera
|
// Firefox and Opera
|
||||||
|
|
Loading…
Add table
Reference in a new issue