Thanks Scott,
The fix worked fine
The php code also needs to be changed as you wrote(exactly the same) in editpost.php and newreply.php.
Then the template changes should also be done (exactly the same as you wrote) in the editpost template and newreply template.
This fixes the javascript errors.
Regarding the private message phps (private.php and private2.php) the code is different and I didn't want to mess with it (i.e. break it :ermm: ). So, I just removed the
onChange=getActiveText(this) onclick=getActiveText(this)
code from the following templates:
priv_forwardmultiple
priv_sendprivmsg
priv_sendtobuddies
Now users don't have the added convenience when sending PMs but at least they don't get an error. A reasonable trade I think.
Awesome hack

... one of my favorites! Danke