탭메뉴 글작성시 에디터사용에 관한 질문입니다. 채택완료
그그누누
6년 전
조회 2,097
안녕하세요!
탭이 3개인 탭메뉴 스킨을 사용중인데요, 글 작성시에 에디터를 사용할 수 있도록 하고싶은데, 어떻게 해야할지 모르겠네요.
관리자페이지에서 dhtml사용에 체크 했습니다.
해당부분 코드 첨부할게요
</p>
<p>//wirte.skin.php</p>
<pre>
<tr>
<th scope="row"><label for="wr_content">메뉴1</label></th>
<td class="tab-content current" data-tab="tab-1">
<?php echo editor_html("wr_content", $write['wr_content'], $is_dhtml_editor); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="wr_7">메뉴2</label></th>
<td class="tab-content" data-tab="tab-2">
<?php echo editor_html("wr_7", $write['wr_7'], $is_dhtml_editor); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="wr_8">메뉴3</label></th>
<td class="tab-content"data-tab="tab-3">
<?php echo editor_html("wr_8", $write['wr_8'], $is_dhtml_editor); ?>
</td>
</tr>
</pre>
<p>
기존에
</p>
<p><tr>
<th scope="row"><label for="wr_content">메뉴1</label></th>
<td class="tab-content current" data-tab="tab-1">
<?php echo $editor_html; ?>
</td>
</tr></p>
<p>
이렇게 했었는데 저 방법을 쓰니 에디터적용은 되지만 작성하는 내용이 DB에 안올라가고 자꾸 삭제되더라구요ㅠ
좋은답변 기다리고있겠습니다. 감사합니다
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
6년 전
js 관련 부분을 추가하지 않아서 그런건 아닐까요?
</p>
<p><?php</p>
<p>$editor_js .= get_editor_js('wr_7', $is_dhtml_editor);
$editor_js .= chk_editor_js('wr_7', $is_dhtml_editor);</p>
<p>$editor_js .= get_editor_js('wr_8', $is_dhtml_editor);
$editor_js .= chk_editor_js('wr_8', $is_dhtml_editor);</p>
<p>echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함</p>
<p>?></p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
그그누누
6년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
js부분도 추가 했습니다ㅜㅜ