I explain better.
I tried to include the Upload new version button in document details page.
As jpfi told, I had to adapt the webscript for adding hidden templates, divs, css and js for both html and flash upload.
Everything works perfectly in every browser except (as usual…) Internet Explorer, where including this function make the Add new comment textarea field text only: TinyMCE isn't rendered at all.
The strange thing is that if I don't include the /share/components/upload/flash-upload.css (and html-upload.css), everything works fine, but obviously the Upload popup is completely broken.
If I include that specific css', even if they're empty, it doesn't work!
The only reason I can figure out for this behaviour is some kind of incompatibility between TinyMCE (updated to 3.2.7 but tried with 3.3 too) and the YUI mechanism for showing the Upload popup.
I need some help!
Thank you!