Is there a way to set the hieight of the editor to 100%, just like the width? I want to use one ful frame of a frameset to just display the editor, when one resizes the frame, it would be nice if the editor keeps fitted in exactly!
Wed, 01/21/2004 - 08:39
#1
RE: Height 100%
RE: Height 100%
RE: Height 100%
this is what my copy of FCKeditor came with...
100% height, 150px width.
works perfectly.
You could also try to put the editor into a table, using this code:
<table width="100%">
<tr height="100%"><td>
<!-- editor init -->
</td></tr>
</table>
RE: Height 100%
Tips:
Make sure the table that includes the editor iFrame has an ID="EditorTable".
Make sure the ID of the WYSIWYG iFrame has
ID="WYSIWYGIframe".
Put the attached script in a script block on the editor page.
Add this to the Body tag:
onLoad="resizeiframe();" onResize="resizeiframe();"
Also (I think) you should have body height in style sheet "height:100%"
function resizeiframe(){
var offsetTrail = document.getElementById('EditorTable');
var offsetTop = 0;
while (offsetTrail) {
offsetTop += offsetTrail.offsetTop;
offsetTrail = offsetTrail.offsetParent;
}
document.all.WYSIWYGIframe.height=window.document.body.clientHeight-offsetTop;
}