에디터 질문입니다.

· 2011-06-16 (목) 17:28:12 · 1712 · 2
게시판에 글쓰기 할때 관리자에서 DHTML 에디터 사용을 체크하면
내용부분에 에디터기능을 사용하여 글을 쓸수 있는데

항목을 내용2로 하나더 두고 에디터 기능을 추가로 사용하려고 하는데 방법이 있을까요?

제목
내용 (에디터사용)
내용2 (에디터사용) ->추가로 사용
링크
파일첨부
..

항목추가는 내용2를 wr_1 로 하려고 하는데

<?=cheditor2('wr_content', $content);?>
이부분을
<?=cheditor2('wr_1', $wr_1);?> 로 수정하면 입력란이 사라집니다.

방법이 있다면 방법좀 알려주시면 감사하겠습니다.
|

댓글 2개

2011-06-16 (목) 17:45:21
write.skin.php
★★ 상단 - wr_1 사용시
echo cheditor1('wr_content', '100%', '250'); // 기본
echo cheditor1('wr_1', '100%', '100'); // 추가

★★ 중간 - 내용란 복사 해서 붙여넣기 후 wr_content -> wr_1로 변경
<tr>
<td class=write_head>부가설명</td>
<td class='write_head' style='padding:5 0 5 0;'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_1', $write[wr_1]);?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_1', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_1', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_1', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
<td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id="wr_1" name="wr_1" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_1', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script type="text/javascript"> check_byte('wr_1', 'char_count'); </script><?}?>
<? } ?>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>

★★ 하단
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); // 추가
2011-06-16 (목) 17:58:25
빠른답변 감사하고 해결했습니다.

복 많이 받으세요

감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
11-06-17 조회 1,712
11-06-17 조회 2,359
11-06-17 조회 1,554
11-06-17 조회 1,115
11-06-17 조회 911
11-06-17 조회 930
11-06-17 조회 1,286
11-06-17 조회 888
11-06-17 조회 859
11-06-17 조회 1,045
11-06-17 조회 1,647
11-06-17 조회 877
11-06-17 조회 1,062
11-06-17 조회 1,734
11-06-16 조회 1,726
11-06-16 조회 1,636
11-06-16 조회 1,713
11-06-16 조회 1,301
11-06-16 조회 1,849
11-06-16 조회 1,332