에디터와 캡챠코드를 수정 보완, 모바일에서는 에디티를 사용하지 않게 처리
This commit is contained in:
@ -203,8 +203,13 @@ if ($member['mb_level'] >= $board['bo_html_level'])
|
||||
$is_secret = $board['bo_use_secret'];
|
||||
|
||||
$is_dhtml_editor = false;
|
||||
if ($board['bo_use_dhtml_editor'] && $member['mb_level'] >= $board['bo_html_level']) {
|
||||
$editor_html = editor_html('wr_content', $content, $is_dhtml_editor);
|
||||
$editor_js = '';
|
||||
// 모바일에서는 DHTML 에디터 사용불가
|
||||
if (!G4_IS_MOBILE && $board['bo_use_dhtml_editor'] && $member['mb_level'] >= $board['bo_html_level']) {
|
||||
$is_dhtml_editor = true;
|
||||
$editor_js .= get_editor_js('wr_content', $is_dhtml_editor);
|
||||
$editor_js .= chk_editor_js('wr_content', $is_dhtml_editor);
|
||||
}
|
||||
|
||||
$is_mail = false;
|
||||
@ -345,9 +350,11 @@ $width = $board['bo_table_width'];
|
||||
if ($width <= 100)
|
||||
$width .= '%';
|
||||
|
||||
$captcha_html = "";
|
||||
$captcha_html = '';
|
||||
$captcha_js = '';
|
||||
if ($is_guest) {
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
}
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
|
||||
@ -104,7 +104,7 @@ echo $option_hidden;
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
|
||||
<td class="wr_content"><?=editor_html("wr_content", $content, $is_dhtml_editor);?></td>
|
||||
<td class="wr_content"><? echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
|
||||
</tr>
|
||||
|
||||
<? for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
|
||||
@ -191,8 +191,7 @@ function html_auto_br(obj)
|
||||
|
||||
function fwrite_submit(f)
|
||||
{
|
||||
<? echo get_editor_js('wr_content', $is_dhtml_editor); ?>
|
||||
<? echo chk_editor_js('wr_content', $is_dhtml_editor); ?>
|
||||
<? echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
@ -227,7 +226,7 @@ function fwrite_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
<? if ($is_guest) { echo chk_captcha_js(); } ?>
|
||||
<? echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user