1
0

js insertion patch by online

This commit is contained in:
Garvin Hicking
2009-03-18 09:41:00 +00:00
parent 4963bfe3f5
commit e13b025aed
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,9 @@
Version 1.5 ()
------------------------------------------------------------------------
* Change javascript non-wysiwyg insertion methods to propery
return to scrollposition, patch by onli
* Enhance TrackExits plugin to also support link redirection for
future german law/access blocking :) (garvinhicking)

View File

@ -58,11 +58,20 @@ function IEWrap(txtarea, lft, rgt) {
}
function wrapSelection(txtarea, lft, rgt) {
if (txtarea.scrollTop) {
scrollPos = txtarea.scrollTop;
}
if (document.all) {
IEWrap(txtarea, lft, rgt);
} else if (document.getElementById) {
mozWrap(txtarea, lft, rgt);
}
if (txtarea.scrollTop) {
txtarea.focus();
txtarea.scrollTop = scrollPos;
}
}
function wrapSelectionWithLink(txtarea) {