gpt4 book ai didi

javascript - 如何增加FCKEditor文本区域的高度?

转载 作者:行者123 更新时间:2023-11-28 11:16:40 25 4
gpt4 key购买 nike

我需要增加 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%' },它不起作用。

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

最佳答案

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

CKEDITOR.editorConfig = function( config )
{

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

};

关于javascript - 如何增加FCKEditor文本区域的高度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21726679/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com