하나의 게시판에 dhtml 2개 달려면~~

aps.jpg
하나의 게시판에 Content와 Wr_1 에 Dhtml을 달려면 어떻게 해야 하나요?

모양만 2개 Dhtml 달면 되는게 아닌가봐요.

모양은 그림과 같이 2개 나오게 했는데 글을 쓰니~ ㅎㅎㅎ 글이 입력이 안되네요.

도움 좀 부탁합니다.

첨부파일

aps.jpg (112.3 KB)
0회 2011-07-07 05:01
|

댓글 1개

adm/board_form.php 요 파일 참조해보세요~

핵심소스만~
<?=include_once ("$g4[path]/lib/cheditor4.lib.php");?>
<?=cheditor1('bo_content_head', '100%', '200');?>
<?=cheditor1('bo_content_tail', '100%', '200');?>

<!--글나오는부분 -->
<?=cheditor2('bo_content_head', $board[bo_content_head]);?>
<?=cheditor2('bo_content_tail', $board[bo_content_tail]);?>

<script type="text/javascript">
<?=cheditor3('bo_content_head')."\n";?>
<?=cheditor3('bo_content_tail')."\n";?>
</script>



게시판일 경우

상단...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

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%', '250');
echo cheditor1('wr_1', '100%', '250'); //추가
}
?>

<!-- 글 입력창 --!>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
....
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<?=cheditor2('wr_1', $write[wr_1]);?> <!-- 추가 -->
</td>
</tr>

<!-- 하단 javascript 란 --!>
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); //추가
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
14년 전 조회 1,918
14년 전 조회 978
14년 전 조회 812
14년 전 조회 777
14년 전 조회 1,764
14년 전 조회 962
14년 전 조회 2,563
14년 전 조회 5,221
14년 전 조회 878
14년 전 조회 2,282
14년 전 조회 2,275
14년 전 조회 992
14년 전 조회 848
14년 전 조회 1,495
14년 전 조회 986
14년 전 조회 934
14년 전 조회 992
14년 전 조회 1,096
14년 전 조회 802
14년 전 조회 790