갤러리 스킨에서 DHTML 에디터 사용할 수 있으려면... 정보
갤러리 스킨에서 DHTML 에디터 사용할 수 있으려면...본문
ucc 영상 페이지를 꾸미려는데요.
일반 게시판에서는 이미지를 목록으로 보일 수가 없고,
갤러리 스킨을 이용하려하는데,
대부분 DHTML 에디터 설정이 안되더군요.
갤러리 스킨에서 DHTML 에디터 적용되게 하려면 어떻게 해야하는지요 (__)
댓글 전체

write.skin.php 파일 상단에 아래의 소스를 넣어보세요...^^
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor.lib.php");
echo "<script src='$g4[editor_path]/cheditor.js'></script>";
echo cheditor1('wr_content', $content);
}
안되는데요 ㅜㅜ

사용하시는 스킨에 따라서는 호환되지 않을수도 있습니다..
특별히 다른 기능들을 포함하지않은 갤러리스킨에 적용해보세요...
이건 잘 됩니다..^^
특별히 다른 기능들을 포함하지않은 갤러리스킨에 적용해보세요...
이건 잘 됩니다..^^

write.skin.php를 기본 배포되는 최신버전으로 바꾸시고
게시판관리자에서 DHTML 사용 체크하세요....
게시판관리자에서 DHTML 사용 체크하세요....
특정 갤러리 스킨 중 write.skin.php 중앙 부분에서 basic 스킨의 write.skin.php 를 따와
걍 덮어버리니까 되네요. 문제는 없을지 모르겠네요 ㅜㅜ
<tr>
<td style='padding-left:20px;'>· 내용</td>
<td style='padding:5 0 5 0;'>
<? 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=10 itemname="내용" 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><?}?>
<? } ?>
</td>
</tr>
걍 덮어버리니까 되네요. 문제는 없을지 모르겠네요 ㅜㅜ
<tr>
<td style='padding-left:20px;'>· 내용</td>
<td style='padding:5 0 5 0;'>
<? 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=10 itemname="내용" 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><?}?>
<? } ?>
</td>
</tr>
활용할것...오늘오늘~2008 7 28