js insertion patch by online
This commit is contained in:
@ -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)
|
||||
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user