diff options
Diffstat (limited to 'phpBB/adm/style')
-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 8d6df9164a..cd4e75f51f 100644 --- a/phpBB/adm/style/editor.js +++ b/phpBB/adm/style/editor.js @@ -258,7 +258,7 @@ function addquote(post_id, username) */ function mozWrap(txtarea, open, close) { - var selLength = txtarea.textLength; + var selLength = (typeof(txtarea.textLength) == 'undefined') ? txtarea.value.length : txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; var scrollTop = txtarea.scrollTop; |