diff --git a/content/messages.js.php b/content/messages.js.php index 3e72748ec..5afc6162f 100644 --- a/content/messages.js.php +++ b/content/messages.js.php @@ -175,7 +175,22 @@ function MessagesIFrameSetHTML(val) } //Value setzen if(val!='') + { editor.contentDocument.execCommand("inserthtml", false, val); + + setTimeout(function() + { + scrollToTop(); + }, 100); + } +} + +function scrollToTop() +{ + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + editor = document.getElementById('message-wysiwyg'); + + editor.contentWindow.scrollTo(0, 0); } function MessageIFrameInit()