2016-10-20 3 views
0

私は現在、自分のウェブサイトでckeditorを使用しています。私はeditor.resize('100%','500',true)を使用しようとしましたが、動作しません。CKEDITORはサイズ変更されていません

クリック可能なサイズ変更機能も無効にしたいが、サイズ変更機能を無効にするかどうかにかかわらず、高さは変更されません。

私の質問はです。私はどのように私のCKEDITORのための特定のheigthを設定するのですか?

編集: 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); 

}); 

+0

あなたのhtmlを投稿することができますか? – gkb

答えて

0
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> 
関連する問題