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!!
http://www.devcity.net/Articles/64/screenresolution.aspx
public void Page_Load(Object sender, EventArgs e){ if (Session["Height"] == null) { Response.Redirect("detectscreen.aspx"); } else { int availableHeight = Convert.ToInt32(Session["Height"].ToString()); FCKeditor1.Height = availableHeight - 300; } }Re: How to resize FCKeditor automatically??? HELP!!
Re: How to resize FCKeditor automatically??? HELP!!
function FCKeditor_OnComplete( editorInstance ) { document.getElementById('FCKeditor1___Frame').style.height = "400px"; }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!!
<script type="text/javascript"> var oFCKeditor = new FCKeditor( 'MyFCKEditor' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.Value = '' ; oFCKeditor.Height = document.documentElement.clientHeight-20; //Set the height to the initial window size - 20 for the scrollbar. oFCKeditor.Create() ; </script> <script type="text/javascript"> function resizeWin() { var height = document.documentElement.clientHeight; height = -20; // -20 for the scrollbar document.getElementByID('FCKMapEdit___Frame').style.height = height; }; window.onresize = resizeWin; </script>html { overflow: hidden; }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!!
// FCKConfig.Plugins.Add( 'autogrow' ) ;
FCKConfig.AutoGrowMax = 400 ;
Re: How to resize FCKeditor automatically??? HELP!!