cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요? 정보
cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요?본문
<?
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '400');
}
?>
<?=cheditor2('wr_content', $content);?>
이것이 기본으로 들어가 있는 소스 입니다.
한개를 더 쓰려면 어떻게 해야 하나요?
그냥 단순히 한개를 추가하면 안되던데요.. wr_10 필드를 이용해서 사용하려고 합니다.
고수님들 부탁 드립니다.
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '400');
}
?>
<?=cheditor2('wr_content', $content);?>
이것이 기본으로 들어가 있는 소스 입니다.
한개를 더 쓰려면 어떻게 해야 하나요?
그냥 단순히 한개를 추가하면 안되던데요.. wr_10 필드를 이용해서 사용하려고 합니다.
고수님들 부탁 드립니다.
댓글 전체
Write.skin.php
상단추가
echo cheditor1('wr_content', '90%', '80'); // 기존
echo cheditor1('wr_9', '90%', '80'); // 추가 wr_9 이용시
내용부분 추가
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_9', $write[wr_9]);?>
<? } else { ?>
<table width=90% cellpadding=0 cellspacing=0>
<tr>
<td width=100% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_9', 3);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_9', 3);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_9', 3);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=100% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id=wr_9 name=wr_9 class=tx style='width:90%; word-break:break-all;' rows=5 itemname="내용이외표현"
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_9', 'char_count');"<?}?>><?=$write[wr_9]?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_9', 'char_count'); </script><?}?>
<? } ?>
펑션 부분 추가
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_9');
?>
상단추가
echo cheditor1('wr_content', '90%', '80'); // 기존
echo cheditor1('wr_9', '90%', '80'); // 추가 wr_9 이용시
내용부분 추가
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_9', $write[wr_9]);?>
<? } else { ?>
<table width=90% cellpadding=0 cellspacing=0>
<tr>
<td width=100% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_9', 3);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_9', 3);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_9', 3);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=100% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id=wr_9 name=wr_9 class=tx style='width:90%; word-break:break-all;' rows=5 itemname="내용이외표현"
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_9', 'char_count');"<?}?>><?=$write[wr_9]?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_9', 'char_count'); </script><?}?>
<? } ?>
펑션 부분 추가
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_9');
?>
감사합니다. 감사합니다. 펑션부분을 제가 안넣었네요.. 넘 감사합니다.