모바일 상품문의 사용후기 폼 에디터 관련 코드 수정

This commit is contained in:
chicpro
2013-11-22 13:32:07 +09:00
parent 3abf00f181
commit b227f7a0e2
8 changed files with 48 additions and 16 deletions

View File

@ -36,6 +36,16 @@ if ($w == "u")
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('iq_question', $qa['iq_question'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_question', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_question', $is_dhtml_editor);
$itemqaform_skin = G5_MSHOP_SKIN_PATH.'/itemqaform.skin.php';
if(!file_exists($itemqaform_skin)) {

View File

@ -31,6 +31,16 @@ if ($w == "") {
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('is_content', $use['is_content'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('is_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('is_content', $is_dhtml_editor);
$itemuseform_skin = G5_MSHOP_SKIN_PATH.'/itemuseform.skin.php';
if(!file_exists($itemuseform_skin)) {

View File

@ -42,7 +42,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="iq_question">질문</label></th>
<td><?php echo editor_html('iq_question', $qa['iq_question']); ?></td>
<td><?php echo $editor_html; ?></td>
</tr>
</tbody>
</table>
@ -58,9 +58,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script type="text/javascript">
function fitemqa_submit(f)
{
<?php echo get_editor_js('iq_question'); ?>
<?php echo chk_editor_js('iq_question'); ?>
<?php echo $editor_js; ?>
return true;
}

View File

@ -27,7 +27,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="" style="width:200px;">내용</label></th>
<td><?php echo editor_html('is_content', $use['is_content']); ?></td>
<td><?php echo $editor_html; ?></td>
</tr>
<tr>
<th scope="row">평가</th>
@ -76,9 +76,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script type="text/javascript">
function fitemuse_submit(f)
{
<?php echo get_editor_js('is_content'); ?>
<?php echo chk_editor_js('is_content'); ?>
<?php echo $editor_js; ?>
return true;
}

View File

@ -42,6 +42,16 @@ if ($w == "u")
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('iq_question', $qa['iq_question'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('iq_question', $is_dhtml_editor);
$editor_js .= chk_editor_js('iq_question', $is_dhtml_editor);
$itemqaform_skin = G5_SHOP_SKIN_PATH.'/itemqaform.skin.php';
if(!file_exists($itemqaform_skin)) {

View File

@ -37,6 +37,16 @@ if ($w == "") {
include_once(G5_PATH.'/head.sub.php');
$is_dhtml_editor = false;
// 모바일에서는 DHTML 에디터 사용불가
if ($config['cf_editor'] && !G5_IS_MOBILE) {
$is_dhtml_editor = true;
}
$editor_html = editor_html('is_content', $use['is_content'], $is_dhtml_editor);
$editor_js = '';
$editor_js .= get_editor_js('is_content', $is_dhtml_editor);
$editor_js .= chk_editor_js('is_content', $is_dhtml_editor);
$itemuseform_skin = G5_SHOP_SKIN_PATH.'/itemuseform.skin.php';
if(!file_exists($itemuseform_skin)) {

View File

@ -41,7 +41,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="iq_question">질문</label></th>
<td><?php echo editor_html('iq_question', get_text($qa['iq_question'])); ?></td>
<td><?php echo $editor_html; ?></td>
</tr>
</tbody>
</table>
@ -57,9 +57,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script type="text/javascript">
function fitemqa_submit(f)
{
<?php echo get_editor_js('iq_question'); ?>
<?php echo chk_editor_js('iq_question'); ?>
<?php echo $editor_js; ?>
return true;
}

View File

@ -26,7 +26,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</tr>
<tr>
<th scope="row"><label for="" style="width:200px;">내용</label></th>
<td><?php echo editor_html('is_content', get_text($use['is_content'])); ?></td>
<td><?php echo $editor_html; ?></td>
</tr>
<tr>
<th scope="row">평점</th>
@ -75,9 +75,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<script type="text/javascript">
function fitemuse_submit(f)
{
<?php echo get_editor_js('is_content'); ?>
<?php echo chk_editor_js('is_content'); ?>
<?php echo $editor_js; ?>
return true;
}