mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:01:48 +02:00
[ticket/12093] Check that document.selection is supported.
PHPBB3-12093
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user