如何增加FCKEditor textarea的高度?

时间:2014-02-12 11:28:55

标签: javascript html css

我需要增加FCK文本编辑器的高度。 这是我的代码:

<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%' },那就不行了。

你能否建议我克服这个问题?请

1 个答案:

答案 0 :(得分:0)

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

CKEDITOR.editorConfig = function( config )
 {

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

};
相关问题