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" ><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
</textarea>
<script>
CKEDITOR.replace( 'editor1', {
width: '70%',
height: 500
} );
</script>
</body>
</html>
我目前在我的网站上使用 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" ><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
</textarea>
<script>
CKEDITOR.replace( 'editor1', {
width: '70%',
height: 500
} );
</script>
</body>
</html>