2014-02-12 124 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 

};