CKEDITOR 调整大小不起作用

CKEDITOR resize not working

我目前在我的网站上使用 ckeditor,我希望它有特定的高度。我尝试使用 editor.resize('100%','500',true) 但它不起作用。

我也想禁用可点击调整大小功能,但无论是否禁用调整大小功能,高度都不会修改。

我的问题是 我该如何为我的 CKEDITOR 设置一个特定的高度?

编辑: html 和脚本

<div id="textContent">
        <h3>Descripción:</h3>
       <textarea id="inputPara" rows="33" cols="84" autocomplete="off" placeholder="Respuesta, explicación..."></textarea>
       </div>
<script type="text/javascript">
$(function()
{
    var editor = CKEDITOR.replace('inputPara');
    editor.resize('100%', '500px', true);

});

try this example

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="robots" content="noindex, nofollow">
    <title>Setting editor size</title>
    <script src="http://cdn.ckeditor.com/4.5.11/standard-all/ckeditor.js"></script>
</head>

<body>

    <textarea cols="80" id="editor1" name="editor1" rows="10" >&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;
    </textarea>

    <script>
        CKEDITOR.replace( 'editor1', {
            width: '70%',
            height: 500
        } );
    </script>
</body>

</html>