cheditor5 적용하는 방법 알려주세요...ㅜㅜ 정보
cheditor5 적용하는 방법 알려주세요...ㅜㅜ본문
지금 영카트를 사용하고 있습니다.
board/ skin/basic에 cheditor5를 적용시키려고 하는데 도무지 되지않네요...
게시판에 에디터 기능을 넣고 싶은데...상품 상세정보에는 있는데..게시판에는 어떻게 넣어야 할지 자세하게 알려주시면 정말 감사하겠습니다. mㅡㅡm
board/ skin/basic에 cheditor5를 적용시키려고 하는데 도무지 되지않네요...
게시판에 에디터 기능을 넣고 싶은데...상품 상세정보에는 있는데..게시판에는 어떻게 넣어야 할지 자세하게 알려주시면 정말 감사하겠습니다. mㅡㅡm
댓글 전체
write상단설정
이부분에서 wr_content는 내용부분입니다
제목을 넣고 싶다면 wr_subject 머 이런식이겠죠
textarea부분은
앞부분은 textarea의 name이 들어가고 뒷부분은 가져오는 변수입니다
자바스크립트 부분에 추가할 사항
이렇게 하시면 적용이 됩니다
만약 $is_dhtml_editor 체크가 있다면 각각 if문으로 감싸주시면 될듯
<?
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
이부분에서 wr_content는 내용부분입니다
제목을 넣고 싶다면 wr_subject 머 이런식이겠죠
textarea부분은
<?=cheditor2('wr_content', $content);?>
앞부분은 textarea의 name이 들어가고 뒷부분은 가져오는 변수입니다
자바스크립트 부분에 추가할 사항
if (document.getElementById('tx_wr_content')) {
if (!ed_wr_content.outputBodyText()) {
alert('내용을 입력하십시오.');
ed_wr_content.returnFalse();
return false;
}
}
<?
echo cheditor3('wr_content');
?>
이렇게 하시면 적용이 됩니다
만약 $is_dhtml_editor 체크가 있다면 각각 if문으로 감싸주시면 될듯
적용을 하면 textarea부분에 아래의 문구가 나와요...ㅜㅜ
textarea<b>Fatal error</b>: Call to undefined function cheditor2() in <b>/home/service/www/goldenpow_com/skin/board/basic/write.skin.php</b> on line <b>143</b><br />
textarea<b>Fatal error</b>: Call to undefined function cheditor2() in <b>/home/service/www/goldenpow_com/skin/board/basic/write.skin.php</b> on line <b>143</b><br />
감사합니다. 어떻게 하다보니 되네요....^^;