Hi, I have following problem.
I am trying to change textarea height after onresize event in <body>
Here is sample code:
Thanks for any advice, I am really desperate.
I am trying to change textarea height after onresize event in <body>
Here is sample code:
<body onresize="res()"> <form action="" method="post" onsubmit="return false"> <div> <textarea id="FCKeditor1" name="FCKeditor1" rows="10" cols="80" style="width: 100%"></textarea> </div> <script type="text/javascript"> <!-- var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.Height = parentGetWindowHeight(); oFCKeditor.ReplaceTextarea(); //--> document.getElementById("FCKeditor1").value = parentGetText(); function res() { oFCKeditor.Height = "600px"; document.getElementById('FCKeditor1').style.height = "600px"; } </script> </form> </body>
Thanks for any advice, I am really desperate.
Re: how to change textarea height after initialization
BEST TO CHECK OUT THIS: API
READING FURTHER WILL MAKE YOU SLEEPY, VERY SLEEPY!
I don't think this is possible until fckeditor.js is fixed.
It seems that even when using the standard method: (been using it since I started with FCKeditor)
I am unable to resize the editors textarea, even though it worked before.
Re: how to change textarea height after initialization
In whitch file do you put this code??
Thx
Re: how to change textarea height after initialization