cheditor 경로 설정 문제 입니다 (DHTML 에디터) 정보
cheditor 경로 설정 문제 입니다 (DHTML 에디터)
본문
일반적인 경로가 있고 그 아래 하나의 디렉토리로 다른 홈페이지가 구성되어 있습니다.
다른문제 부분은 탈디렉토리 관련으로 해결은 했으나
설정 부분에서 DHTML 체크를 할 경우 chediter 경로 때문에 오류가 나더라구요
나머지 부분 경로는 대충 잡은거 같은데
지금 현재 상황이 글쓰기의 내용 부분 오른쪽 글을 쓸 수 있는 박스가 아예 나타나지 않습니다.
대충
-------------------------------
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>
<? } else { ?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50% align=left valign=bottom>
<span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
<span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
<span style="cursor: pointer;" onclick="textarea_increase('wr_content', 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_content name=wr_content class=tx style='width:100%; word-break:break-all;' rows=15 itemname="내용" <? if($is_admin) { echo ""; } else { echo "/*required*/"; }?>
<? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
<? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
<? } ?>
------------------------------
이 부분인거 같은데...
혹시 다른 부분을 더 설정해야 하는지 아시는분 부탁좀 드리겠습니다.
전체적인 경로를 서브디렉토리에 하다 보니 ... 난관이 생기는군요 ㅎㅎ;;

위의 그림처럼 나옵니다;;
댓글 전체
write.skin.php 맨 위쪽에 보시면
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
이런 부분이 있을텐데, 사이트 구조가 다르다면 수정을 해주셔야 할듯합니다.
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
이런 부분이 있을텐데, 사이트 구조가 다르다면 수정을 해주셔야 할듯합니다.
네 현재 그 위치의 경로는 변경한 상태 입니다.
변경전에는 위의 글쓰기 부분조차 나오지 않았거든요
변경전에는 위의 글쓰기 부분조차 나오지 않았거든요
아 해결했네요
원래 게시판 자체가 cheditor 불러올때 오류가 있던거네요 -_-;;
수정했습니다. 관심갖아주신 AKvH 님 감사 드립니다.
원래 게시판 자체가 cheditor 불러올때 오류가 있던거네요 -_-;;
수정했습니다. 관심갖아주신 AKvH 님 감사 드립니다.