I have some problems with IE9 (some other version too, of course) with not showing layout of the website, when this previewInfo is on the site. I think it would be better to add it after the content on the end. In Version 4.4.4 I have the previewInfo as last element on the page. It is all fine.
I think this is a bug from inserting this code:
typo3_src-4.5.6\typo3\sysext\cms\tslib\index_ts.php
if ($sendTSFEContent) {
echo $TSFE->content;
}
with this the Content of the page is echoed as very last element. So the previewInfo get on top of the page. Then the layout is broken.
A solution is to add the previewInfo right before the closing body-Tag, just like the adminPanel-Code before the sendTSFEContent-Codepart. For this ...
1) the function previewInfo() in
typo3_src-4.5.6\typo3\sysext\cms\tslib\class.tslib_fe.php
should not echo its part, but return it:
return $temp_content;
2) then in typo3_src-4.5.6\typo3\sysext\cms\tslib\index_ts.php
the lines 541 ff.:
// *************
// Preview info
// *************
$TSFE->previewInfo();
could be:
// *************
// Preview info
// *************
$previewInfo = $TSFE->previewInfo();
if ($previewInfo!='') $TSFE->content = str_ireplace('</body>', $previewInfo . '</body>', $TSFE->content);
This solves the layout problems, I think. Sorry, I didn't get a correct patch-file. Hope this helps anyway.