cheditor를 한 게시판에서 세번을 사용할 수 있는 방법이 있나요?

· 2013-07-12 (금) 07:48:28 · 1162 · 2
<?
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 필드를 이용해서 사용하려고 합니다.

고수님들 부탁 드립니다.
|

댓글 2개

2013-07-12 (금) 09:26:35
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');
?>
2013-07-12 (금) 09:37:25
감사합니다. 감사합니다. 펑션부분을 제가 안넣었네요.. 넘 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
13-07-12 조회 1,251
13-07-12 조회 1,688
13-07-12 조회 1,163
13-07-12 조회 1,709
13-07-11 조회 953
13-07-11 조회 1,827
13-07-11 조회 1,246
13-07-11 조회 1,089
13-07-11 조회 1,730
13-07-11 조회 914
13-07-11 조회 963
13-07-11 조회 2,129
13-07-11 조회 1,876
13-07-11 조회 1,746
13-07-11 조회 1,097
13-07-11 조회 1,106
13-07-11 조회 997
13-07-11 조회 1,693
13-07-11 조회 1,061
13-07-11 조회 938