mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Bug #38765 - Unify BBCode selection across browsers (also needs fixing in subsilver2)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10474 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
99c608e88c
commit
8adf583bdf
1 changed files with 2 additions and 2 deletions
|
@ -276,8 +276,8 @@ function mozWrap(txtarea, open, close)
|
||||||
var s3 = (txtarea.value).substring(selEnd, selLength);
|
var s3 = (txtarea.value).substring(selEnd, selLength);
|
||||||
|
|
||||||
txtarea.value = s1 + open + s2 + close + s3;
|
txtarea.value = s1 + open + s2 + close + s3;
|
||||||
txtarea.selectionStart = selEnd + open.length + close.length;
|
txtarea.selectionStart = selStart + open.length;
|
||||||
txtarea.selectionEnd = txtarea.selectionStart;
|
txtarea.selectionEnd = selEnd + open.length;
|
||||||
txtarea.focus();
|
txtarea.focus();
|
||||||
txtarea.scrollTop = scrollTop;
|
txtarea.scrollTop = scrollTop;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue