2014-02-12 126 views
0

我需要增加FCK文本編輯器的高度。 這裏是我的代碼:如何增加FCKEditor textarea的高度?

<tr> 
    <td colspan="2" align="left" valign="middle"> 
     <textarea name="text" id="text" > 
     <?php echo $curnote;?> 
     </textarea> 
</td> 
</tr> 

<script type="text/javascript"> 
CKEDITOR.replace('text', { width:'90%' }); 
</script> 

如果我把{ width:'90%', height:'90%' },它不工作。

你能建議我解決這個問題嗎?請

+0

%適用於寬度,使用像素值高度 – slash197

+0

thnx斜槓..它工作:) – Ajay

回答

0

在config.js文件中添加以下代碼。

CKEDITOR.editorConfig = function(config) 
{ 

     config.height = '500px'; // here give your desired height value 

};