cheditor4 뭐 이런 경우가... 정보
cheditor4 뭐 이런 경우가...
본문
*현상 : 이미지 보시면, write.skin.php에서 글을 쓰려고 마우스를 올리면 저렇게 되어 버리네요..
수정모드에서는 버튼들이 정상출력 됩니다..
아...희한한 경우가...ㅠㅠ
스킨이 좀 오래 되서 그런지 소스 수정을 거쳤는데도 저런 현상이 있으니, 고수님들 한 번 봐 주시면 감사하겠습니다.
cheditor4 물론 경로에 제대로 업로드 되어 있는 상태이며,
관리자모드 DHTML 에디터 사용에 체크가 되어 있습니다
*소스 :
------------4번라인-----------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/cheditor4.lib.php");
if ($w != 'u') $content = '';
?>
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
<?=cheditor1('wr_content', $content);?>
--------------------------------------
------------90번 라인 : 내용 부분-----------------
<td style='padding-left:20px;'>· 내용</td>
<td style='padding:5 0 5 0;'><?=cheditor2('wr_content');?></td>
--------------------------------------
-----------273라인 : 최하단 부분---------------
<?=cheditor3('wr_content');?>
---------------------------------------------
수정모드에서는 버튼들이 정상출력 됩니다..
아...희한한 경우가...ㅠㅠ
스킨이 좀 오래 되서 그런지 소스 수정을 거쳤는데도 저런 현상이 있으니, 고수님들 한 번 봐 주시면 감사하겠습니다.
cheditor4 물론 경로에 제대로 업로드 되어 있는 상태이며,
관리자모드 DHTML 에디터 사용에 체크가 되어 있습니다
*소스 :
------------4번라인-----------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/lib/cheditor4.lib.php");
if ($w != 'u') $content = '';
?>
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
<?=cheditor1('wr_content', $content);?>
--------------------------------------
------------90번 라인 : 내용 부분-----------------
<td style='padding-left:20px;'>· 내용</td>
<td style='padding:5 0 5 0;'><?=cheditor2('wr_content');?></td>
--------------------------------------
-----------273라인 : 최하단 부분---------------
<?=cheditor3('wr_content');?>
---------------------------------------------
댓글 전체
고수님들이 일찍 퇴청 하신 것 같아 미천한 불초소생 올립니다....
사용스킨이 구닥다리라서 그런것 같습니다... 어! 죄송..
최신버전 참고해서 살짝쿵해보세요..
뭔가 중복되고 소스가 틀린것 같네요..
아래 참고해 보세요.
오리지널 최신버전입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
----------------------------
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
if ($option) {
?>
<tr>
<td height=30 align='center'>옵션</td>
<td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
----------------------------
<? if ($is_dhtml_editor) { ?>
<tr>
<td colspan="2" style='padding:5 0 5 5;'>
<?=cheditor2('wr_content', $content);?>
</td>
</tr>
<? } else { ?>
<tr>
<td height=30 align='center'>내용</td>
<td style='padding:5 0 5 0;' valign='top'>
<table width=100% height='20' cellpadding=0 cellspacing=0>
<tr>
<td width=50% 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 valign=bottom><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id="wr_content" name="wr_content" class=tx style='width:98%; word-break:break-all; IME-MODE: active;' 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>
<? } ?>
----------------------------
<script language="javascript">
//// 내려가서 ///
function fwrite_check(f) {
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
?>
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript"> window.onload=function() { drawFont(); } </script>
사용스킨이 구닥다리라서 그런것 같습니다... 어! 죄송..
최신버전 참고해서 살짝쿵해보세요..
뭔가 중복되고 소스가 틀린것 같네요..
아래 참고해 보세요.
오리지널 최신버전입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
----------------------------
<?
$option = "";
$option_hidden = "";
if ($is_notice || $is_html || $is_secret || $is_mail) {
$option = "";
if ($is_notice) {
$option .= "<input type=checkbox name=notice value='1' $notice_checked>공지 ";
}
if ($is_html) {
if ($is_dhtml_editor) {
$option_hidden .= "<input type=hidden value='html1' name='html'>";
} else {
$option .= "<input onclick='html_auto_br(this);' type=checkbox value='$html_value' name='html' $html_checked><span class=w_title>html</span> ";
}
}
if ($is_secret) {
if ($is_admin || $is_secret==1) {
$option .= "<input type=checkbox value='secret' name='secret' $secret_checked><span class=w_title>비밀글</span> ";
} else {
$option_hidden .= "<input type=hidden value='secret' name='secret'>";
}
}
if ($is_mail) {
$option .= "<input type=checkbox value='mail' name='mail' $recv_email_checked>답변메일받기 ";
}
}
echo $option_hidden;
if ($option) {
?>
<tr>
<td height=30 align='center'>옵션</td>
<td><?=$option?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
----------------------------
<? if ($is_dhtml_editor) { ?>
<tr>
<td colspan="2" style='padding:5 0 5 5;'>
<?=cheditor2('wr_content', $content);?>
</td>
</tr>
<? } else { ?>
<tr>
<td height=30 align='center'>내용</td>
<td style='padding:5 0 5 0;' valign='top'>
<table width=100% height='20' cellpadding=0 cellspacing=0>
<tr>
<td width=50% 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 valign=bottom><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
</tr>
</table>
<textarea id="wr_content" name="wr_content" class=tx style='width:98%; word-break:break-all; IME-MODE: active;' 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>
<? } ?>
----------------------------
<script language="javascript">
//// 내려가서 ///
function fwrite_check(f) {
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
?>
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript"> window.onload=function() { drawFont(); } </script>

응? 오늘 왜 이러지...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
알송달송님께서 보여주신 소스
최상단에 요놈만 바꾸고 업로드해서 보니까 정상적으로 editor 출력되네요
허...참 희한하네...알면 알수록 골치 아프지만, 재밌는 그누보드...
캄솨합니다!!! ^^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
}
?>
알송달송님께서 보여주신 소스
최상단에 요놈만 바꾸고 업로드해서 보니까 정상적으로 editor 출력되네요
허...참 희한하네...알면 알수록 골치 아프지만, 재밌는 그누보드...
캄솨합니다!!! ^^