How to change higt of editor in the code?

  •  01-18-2006, 12:27 PM

    How to change higt of editor in the code?

    Hi,

    In the right bottom corner of Editor there are 2 buttons - "+" and "-". Using these button, I can change the size od Editor. I would like to have the same size of my page all time after submitting the form. It must be size which user set before submitting the form. So I can't fixed it like Height="500".  
     
    I tried to change Height of Editor int his way:

    On Submit event:
    I put the current Height into Session variable 
    Session["CuteEditor.Height"] = Editor1.Height.ToString().Replace("px","");

    and

    On Page_Load event
    I tried to set this Height
    Editor1.Height = Unit.Parse(Session["CuteEditor.Height"].ToString());
     
    But every time I got default settings. The Height of Editors is not changed.
     
    To get my point more clearly, look at http://cutesoft.net/example/howto/CatchSave/cs/capture_save_button_click.aspx . Then increase height using "+" button. Press Hello button and you will see that Editor set default Height, but I would like to have the Heiht which I set before submitting the form.
     
    Thanks,
    Igor
View Complete Thread