The forum operates in read-only mode. Please head to StackOverflow for support.
I'm using an editor inside an iframe. I want to be able to use the FitWindow feature, but when clicked in Inernet Explorer 7 it looks like this:In Firefox it looks just fine:
Seems to have something to do with IE handling positioning in a different way that Firefox does. Here's the code:http://www.terning.net/doc.html
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xml:lang="sv"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>title</title> <script type="text/javascript" src="fckeditor/fckeditor.js"></script> <style type="text/css"> <!-- body { background-color: #FFFFFF; } #container { width: 546.10pt; } #container { background-color:#FFFFFF; } #documentBody { clear:both; margin-left:13.19pt; margin-right:0; padding: 0;} /* ta bort ramar, cellspacing och cellpadding på tabeller */ #documentBody table { border-collapse: collapse; border-spacing: 0; width: 100% } #documentBody th { text-align:left; } #documentBody td, #documentBody th { padding:0; } /* lyfter ur returadressen ur dokumentets flöde och positionerar på rätt plats */ #documentBody { position: relative;} #documentBody #returadress { position: absolute; top:-64pt; left: 0pt; } #documentBody #returadress div { margin-bottom: -2pt; } #documentBody #handlaggare { float:left; } #documentBody #mottagare { margin-left:257.95pt; } #documentBody #handlaggare, #documentBody #mottagare { margin-bottom:14.17pt; } /* marginalen från adress etc ner till brödtextens början */ #documentBody #handlaggare #handlaggareEpost { font-size: 8pt; } #documentBody #mottagare { line-height: 1; } /* för att justera radhöjden i mottagaradressen */ --> </style> </head> <body> <div id="container"> <div style="clear: both;"><span style="display: none;"> </span></div> <div id="documentHeaderPlaceHolder"> </div> <div style="clear: both;"><span style="display: none;"> </span></div> <div id="documentBodyPlaceHolder"> <div id="documentBody"> <div id="returadress"> <div id="returadressrad1" class="redigerbar">Returadress rad1</div> <div id="returadressrad2" class="redigerbar">Returadress rad2</div> <div id="returadressrad3" class="redigerbar">Returadress rad3</div> </div> <div id="handlaggare"><label for="handlaggareInfo">Handläggare i detta ärende</label> <div id="handlaggareInfo"> <div id="handlaggareNamn" class="redigerbar">namn Namn</div> <div id="handlaggareTelefon" class="redigerbar">012-123 45 67</div> </div> <label for="handlaggareEpost">E-postadress</label> <div id="handlaggareEpost" class="redigerbar">user@host.com</div> </div> <div id="mottagare"> <div id="adressrad1" class="redigerbar">Förnamn Efternamn</div> <div id="adressrad2" class="redigerbar">Adressrad 1</div> <div id="adressrad3" class="redigerbar">Adressrad 2</div> <div id="adressrad4" class="redigerbar">123 45</div> <div id="adressrad5" class="redigerbar">Stockholm</div> <div id="adressrad6" class="redigerbar">Sverige</div> <div id="adressrad7" class="redigerbar">Sverige</div> </div> <div id="innehall"> <script type="text/javascript"> var oFCKeditor = new FCKeditor('FCKeditor1'); oFCKeditor.BasePath = "fckeditor/"; oFCKeditor.Create(); </script> </div> </div> </div> <div style="clear: both;"><span style="display: none;"> </span></div> <div id="documentFooterPlaceHolder"> </div> <div style="clear: both;"><span style="display: none;"> </span></div> </div> </body> </html>
Re: FitWindow error in IE7 when inside iframe
Re: FitWindow error in IE7
Seems to have something to do with IE handling positioning in a different way that Firefox does. Here's the code:
http://www.terning.net/doc.html
Re: FitWindow error in IE7