Hi All there!
Am using fckeditor to provide my users a rich text exprerience. However, my users want the editor to expand automatically to fit content height whenever the click on the refresh button....
Wow! That's quite a big requirement!
But HOW DO I RESIZE the editor to fit the content height?
Any Hint or idea is ALWAYS Welcome!
Thank you all.
-nat
Am using fckeditor to provide my users a rich text exprerience. However, my users want the editor to expand automatically to fit content height whenever the click on the refresh button....
Wow! That's quite a big requirement!
But HOW DO I RESIZE the editor to fit the content height?
Any Hint or idea is ALWAYS Welcome!
Thank you all.
-nat
Re: How to resize FCKeditor automatically??? HELP!!
I have just started working with FCKeditor and am wondering the same thing. I am trying to see if the 'autogrow' plugin will do this. I can't find any documentation on it and enabling it hasn't yet had the desired effect. If you figure out how be sure to post (as will I).
Thanks!
Re: How to resize FCKeditor automatically??? HELP!!
Re: How to resize FCKeditor automatically??? HELP!!
I think reading your post a second time that your requirements are different to mine. You want the editor box size to follow the user entered content when the refresh button is pressed. I want the box size to follow the available space in the browser. Your requirement means that there will be no scroll bar on the FCLeditor box so the users will use the browser scroll bar. Mine means that there would ideally never be a scroll bar on the browser.
I figured a way to get the editor box to fit approximately to the browser window the first time it loads. It doesn't react to changes in the window size yet but hopefully that shouldn't be a problem. Part of my solution, which is based on this article http://www.devcity.net/Articles/64/screenresolution.aspx uses asp.net programming as that is the paradigm I'm working in. My Page_Load function looks like this rather than the one from the above mentioned article:
Its a bit scruffy now I admit. I'm still wondering what auto-grow does though...
Re: How to resize FCKeditor automatically??? HELP!!
.. for anyone interested in doing this there is a small script at the above link that does a great job of resizing the editor to the window size by calling the function behind the FitWindow toolbar button. You can call the function every time the window size changes..
Re: How to resize FCKeditor automatically??? HELP!!
Change "FCKeditor1" to whatever you named the instance, edit 400px to your liking, and you are good to go.
Re: How to resize FCKeditor automatically??? HELP!!
How about you use this (first set the wdith to 100%)
:
Also you dont need the outside HTML scrollbar so disable that using style sheets. go to your CSS (as defined in the top of your html page - fo example the default is sample.css I believe. In that file set the following
Re: How to resize FCKeditor automatically??? HELP!!
I opened this thread long time before and still nobody has got a clue how to solve this issue.
This my problem is really painful! My users do not want any vertical scrollbar. They want the editor grow by himself to fit the content height. Now i feel they start to laugh about the reduced capabilities of this promising editor.
I read the documentation and searched everywhere in forums. No f*king chance!
I still cannot find a solution for this issue and am stucked. Any hint or help will be greatly appreciated.
Thank you all.
-nat
Re: How to resize FCKeditor automatically??? HELP!!
Edit your config file. Find 'autogrow' word.

Looks like // FCKConfig.Plugins.Add( 'autogrow' ) ;
Uncomment it.
Look below and see a lin looks like: FCKConfig.AutoGrowMax = 400 ;
This is the number in pixel show Maximum size of editor window. You can insert any number.
This doesn't work in Opera...
Re: How to resize FCKeditor automatically??? HELP!!
contains some JavaScript to find the height of the actual content.