I'm using this code with the "ReplaceTextArea" method (sample02.html), although I don't see why it wouldn't work in others.
var sBasePath = '/fck/'; var oFCKeditor = new FCKeditor( 'myTextarea' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.Height = '70%'; // set this to whatever height you want - doesn't have to be a percentage oFCKeditor.ReplaceTextarea() ;
Yes, that should be right. I think I have something like "oFCKeditor.Height = 400;" in mine.
Only tested in Firefox 1.0 (as its not a public page), although IIRC, FCKEditor just sets the value for Height as the height if the main IFRAME when it does the textarea replace method. Would be interested to know IE results...
RE: Adjusting the Height of FCK
var sBasePath = '/fck/';
var oFCKeditor = new FCKeditor( 'myTextarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = '70%'; // set this to whatever height you want - doesn't have to be a percentage
oFCKeditor.ReplaceTextarea() ;
Seems to work in Firefox, anyway.
RE: Adjusting the Height of FCK
RE: Adjusting the Height of FCK
Only tested in Firefox 1.0 (as its not a public page), although IIRC, FCKEditor just sets the value for Height as the height if the main IFRAME when it does the textarea replace method. Would be interested to know IE results...