hello guys
I know this sounds stupid but where can I set the height (and width possibly) of the whole composing area (textarea + buttons)
or at least the textarea height?
I've googled anything and everything reasonable but didn't find anything about this
thank you
Wed, 01/30/2008 - 22:56
#1
Re: Composing area size...where can I set it?
$oFCKeditor = new FCKeditor('FCKeditor1') ;
You can access the Height property of the editor and change it:
$oFCKeditor->Height = '900';
You can also look at the source code that writes the text area in php or whichever language you use to find out more. Look in the fckeditor folder. The php files are fckeditor_php4.php and fckeditor_php5.php.
That's what worked for me in any case. Good luck.
Re: Composing area size...where can I set it?
The other way I'm changing the size, is to put the whole thing in a div and with jQuery do stuff like this:
Both methods change the size, and I'm trying to figure what's best for my purposes. Hope one of these methods helps you!
Re: Composing area size...where can I set it?
I'm sure that you are already there, but I expected to find this info here: http://docs.fckeditor.net/FCKeditor_2.x ... on_Options - but despite detailing how to have the editor strip our Word formatting marks or ideas on adding spell checking I couldn't find any reference to width or height. So I guessed.
There are 'Width' and 'Height' attributes for the editor object, so
<instantiate new> fckeditor
fckeditor.Height = 800
fckeditor.Width = 600
fckeditor.Create
... works.