diff options
| author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-02-04 00:04:25 +0000 |
|---|---|---|
| committer | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-02-04 00:04:25 +0000 |
| commit | 63be6762f3e4a10af371011c95ef8c3f46645049 (patch) | |
| tree | 4552725c4381b55117a93ad8be647c1ee7082bc2 /phpBB/styles/prosilver | |
| parent | 6b519c8bdfc5338f71967ee6cbdc53262afc3396 (diff) | |
| download | forums-63be6762f3e4a10af371011c95ef8c3f46645049.tar forums-63be6762f3e4a10af371011c95ef8c3f46645049.tar.gz forums-63be6762f3e4a10af371011c95ef8c3f46645049.tar.bz2 forums-63be6762f3e4a10af371011c95ef8c3f46645049.tar.xz forums-63be6762f3e4a10af371011c95ef8c3f46645049.zip | |
Bug #38765 - Unify BBCode selection across browsers
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10472 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles/prosilver')
| -rw-r--r-- | phpBB/styles/prosilver/template/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index 1699f783d5..98dab5d7c8 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -323,8 +323,8 @@ function mozWrap(txtarea, open, close) var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; - txtarea.selectionStart = selEnd + open.length + close.length; - txtarea.selectionEnd = txtarea.selectionStart; + txtarea.selectionStart = selStart + open.length; + txtarea.selectionEnd = selEnd + open.length; txtarea.focus(); txtarea.scrollTop = scrollTop; |
