cheditor2 길이조정 정보
cheditor2 길이조정본문
cheditor2 height 길이조정을하고싶은데요.
write.skin.php에보면
<?=cheditor2('wr_content', $content);?>
이렇게 불러들이고
아래는 cheditor4.lib.php입니다.
================================================================================
<?
if (!defined('_GNUBOARD_')) exit;
if ($g4['is_cheditor5'])
{
$g4['cheditor4'] = "cheditor5";
$g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
function cheditor1($id, $width='100%', $height='250')
{
global $g4;
return "
<script type='text/javascript'>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.config.editorHeight = '{$height}';
ed_{$id}.config.editorWidth = '{$width}';
ed_{$id}.inputForm = 'tx_{$id}';
</script>";
}
}
else
{
function cheditor1($id, $width='100%', $height='250')
{
global $g4;
return "
<script type='text/javascript'>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.config.editorHeight = '{$height}';
ed_{$id}.config.editorWidth = '{$width}';
ed_{$id}.config.imgReSize = false;
ed_{$id}.config.fullHTMLSource = false;
ed_{$id}.config.editorPath = '{$g4[cheditor4_path]}';
ed_{$id}.inputForm = 'tx_{$id}';
</script>";
}
}
function cheditor2($id, $content='')
{
global $g4;
return "
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
<script type='text/javascript'>
ed_{$id}.run();
</script>";
}
function cheditor3($id)
{
return "document.getElementById('tx_{$id}').value = ed_{$id}.outputBodyHTML();";
}
?>
====================================================================================
여기서 height길이를 조정하고싶어서그런데요.
어떻게해야돼나요?소스상으로 함수를보면
cheditor5를쓰면 길이조정이돼는거같은데.
cheditor2는 길이조정이안돼내요?
답변부탁드립니다.꾸벅
write.skin.php에보면
<?=cheditor2('wr_content', $content);?>
이렇게 불러들이고
아래는 cheditor4.lib.php입니다.
================================================================================
<?
if (!defined('_GNUBOARD_')) exit;
if ($g4['is_cheditor5'])
{
$g4['cheditor4'] = "cheditor5";
$g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
function cheditor1($id, $width='100%', $height='250')
{
global $g4;
return "
<script type='text/javascript'>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.config.editorHeight = '{$height}';
ed_{$id}.config.editorWidth = '{$width}';
ed_{$id}.inputForm = 'tx_{$id}';
</script>";
}
}
else
{
function cheditor1($id, $width='100%', $height='250')
{
global $g4;
return "
<script type='text/javascript'>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.config.editorHeight = '{$height}';
ed_{$id}.config.editorWidth = '{$width}';
ed_{$id}.config.imgReSize = false;
ed_{$id}.config.fullHTMLSource = false;
ed_{$id}.config.editorPath = '{$g4[cheditor4_path]}';
ed_{$id}.inputForm = 'tx_{$id}';
</script>";
}
}
function cheditor2($id, $content='')
{
global $g4;
return "
<textarea name='{$id}' id='tx_{$id}' style='display:none;'>{$content}</textarea>
<script type='text/javascript'>
ed_{$id}.run();
</script>";
}
function cheditor3($id)
{
return "document.getElementById('tx_{$id}').value = ed_{$id}.outputBodyHTML();";
}
?>
====================================================================================
여기서 height길이를 조정하고싶어서그런데요.
어떻게해야돼나요?소스상으로 함수를보면
cheditor5를쓰면 길이조정이돼는거같은데.
cheditor2는 길이조정이안돼내요?
답변부탁드립니다.꾸벅
댓글 전체
/cheditor5/css/default.css
.cheditor-editarea 에 높이 값을 주면 됩니다~
단점은 모든 에디터에서 같이 적용된다는 점입니다.
관리자 모드안에 있는 에디터 까지..
.cheditor-editarea 에 높이 값을 주면 됩니다~
단점은 모든 에디터에서 같이 적용된다는 점입니다.
관리자 모드안에 있는 에디터 까지..