카멜레온님이 배포하신 cheditor 3.2 버젼을 설치했는데..요 정보
카멜레온님이 배포하신 cheditor 3.2 버젼을 설치했는데..요본문
카멜레온님이 배포하신 cheditor 3.2 버젼을 설치했는데..요
수정을 누르니 내용을 가져오지 못하네요
ilb/cheditor.lib.php 파일중
function cheditor2($form, $id, $width='100%', $height='250')
{
global $g4;
{
global $g4;
return "
<input type='hidden' name='{$id}' id='{$id}'>
<input type='hidden' name='ps_{$id}' value=''>
<script>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.editorPath = '{$g4[editor_path]}';
ed_{$id}.width = '{$width}';
ed_{$id}.height = '{$height}';
ed_{$id}.pasteContent = true;
ed_{$id}.pasteContentForm = 'ps_{$id}';
ed_{$id}.formName = '{$form}';
ed_{$id}.run();
</script>";
}
<input type='hidden' name='{$id}' id='{$id}'>
<input type='hidden' name='ps_{$id}' value=''>
<script>
var ed_{$id} = new cheditor('ed_{$id}');
ed_{$id}.editorPath = '{$g4[editor_path]}';
ed_{$id}.width = '{$width}';
ed_{$id}.height = '{$height}';
ed_{$id}.pasteContent = true;
ed_{$id}.pasteContentForm = 'ps_{$id}';
ed_{$id}.formName = '{$form}';
ed_{$id}.run();
</script>";
}
위소스중
<input type='hidden' name='ps_{$id}' value=''>
를 추가시켜야 하는데.. 벨류값을 모르겠습니다.
혹시.. 아시는분 계신가요?
skin/board/cheditor/write.skin.php 소스중
if ($w != 'u') $content = '';
와 연관이 있나요?
댓글 전체
2가지 파일을 변경하시기 바랍니다.
1. skin/board/cheditor/write.skin.php 소스중 변경사항
skin/board/cheditor/write.skin.php 10번째 줄에 있는
<?=cheditor1('wr_content', $content);?> // 이것을 <form name="fwrite" ....> 밑으로 넣어주세요
---------------------- skin/board/cheditor/write.skin.php 파일 -----------------
<script src="<?=$g4[editor_path]?>/cheditor.js"></script>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<?=cheditor1('wr_content', $content);?>
-------------------------------------------------------skin/board/cheditor/write.skin.php 수정사항 끝 --------------------
2. ilb/cheditor.lib.php 파일중
function cheditor1($id, $content)
{
return "<textarea id='ps_{$id}' style='display:none;'>{$content}</textarea>";
}
이 부분을
function cheditor1($id, $content)
{
return "<input type='hidden' name='ps_{$id}' value='{$content}'>";
}
이렇게 바꿔주시면 됩니다.
1. skin/board/cheditor/write.skin.php 소스중 변경사항
skin/board/cheditor/write.skin.php 10번째 줄에 있는
<?=cheditor1('wr_content', $content);?> // 이것을 <form name="fwrite" ....> 밑으로 넣어주세요
---------------------- skin/board/cheditor/write.skin.php 파일 -----------------
<script src="<?=$g4[editor_path]?>/cheditor.js"></script>
<script language="javascript">
// 글자수 제한
var char_min = parseInt(<?=$write_min?>); // 최소
var char_max = parseInt(<?=$write_max?>); // 최대
</script>
<form name="fwrite" method="post" action="javascript:fwrite_check(document.fwrite);" enctype="multipart/form-data" style="margin:0px;">
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=spt value="<?=$spt?>">
<input type=hidden name=sst value="<?=$sst?>">
<input type=hidden name=sod value="<?=$sod?>">
<input type=hidden name=page value="<?=$page?>">
<?=cheditor1('wr_content', $content);?>
-------------------------------------------------------skin/board/cheditor/write.skin.php 수정사항 끝 --------------------
2. ilb/cheditor.lib.php 파일중
function cheditor1($id, $content)
{
return "<textarea id='ps_{$id}' style='display:none;'>{$content}</textarea>";
}
이 부분을
function cheditor1($id, $content)
{
return "<input type='hidden' name='ps_{$id}' value='{$content}'>";
}
이렇게 바꿔주시면 됩니다.
정말정말 감사합니다.
잘해결 되었습니다 ^^
잘해결 되었습니다 ^^