diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-19 09:06:57 -0600 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2014-02-19 09:06:57 -0600 |
| commit | 823dca737f2dad54a646d0032712e43e452f9b88 (patch) | |
| tree | 434a71f5b72c22525fe9b9122b743a21276c02f6 /phpBB/adm/style/editor.js | |
| parent | 14017b7032502096b04edc72f968b9407ce3b2cc (diff) | |
| parent | 43ccfbc6f46ce8926bd37eeddc7bd33b7e93c165 (diff) | |
| download | forums-823dca737f2dad54a646d0032712e43e452f9b88.tar forums-823dca737f2dad54a646d0032712e43e452f9b88.tar.gz forums-823dca737f2dad54a646d0032712e43e452f9b88.tar.bz2 forums-823dca737f2dad54a646d0032712e43e452f9b88.tar.xz forums-823dca737f2dad54a646d0032712e43e452f9b88.zip | |
Merge remote-tracking branch 'remotes/prototech/ticket/12093' into develop-olympus
* remotes/prototech/ticket/12093:
[ticket/12093] Check that document.selection is supported.
Diffstat (limited to 'phpBB/adm/style/editor.js')
| -rw-r--r-- | phpBB/adm/style/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/adm/style/editor.js b/phpBB/adm/style/editor.js index 217aa699e2..cad01aa9f2 100644 --- a/phpBB/adm/style/editor.js +++ b/phpBB/adm/style/editor.js @@ -292,7 +292,7 @@ function mozWrap(txtarea, open, close) */ function storeCaret(textEl) { - if (textEl.createTextRange) + if (textEl.createTextRange && document.selection) { textEl.caretPos = document.selection.createRange().duplicate(); } |
