I've found something that might break other javascripts present on the page.
It is these lines inserted in the javascript section of posting_body.tpl
Code: Select all
window.onload = initInsertions;
// Fix a bug involving the TextRange object. From
// http://www.frostjedi.com/terra/scripts/demo/caretBug.html
function initInsertions() {
document.post.message.focus();
if (is_ie && typeof(baseHeight) != 'number') baseHeight = document.selection.createRange().duplicate().boundingHeight;
}
This could be fixed by doing something like this instead:
Code: Select all
var fixcaretbug_oldLoad = window.onload;
window.onload = initInsertions;
// Fix a bug involving the TextRange object. From
// http://www.frostjedi.com/terra/scripts/demo/caretBug.html
function initInsertions() {
if( fixcaretbug_oldLoad )
{
fixcaretbug_oldLoad();
fixcaretbug_oldLoad = null;
}
document.post.message.focus();
if (is_ie && typeof(baseHeight) != 'number') baseHeight = document.selection.createRange().duplicate().boundingHeight;
}
HTH+