diff --git a/bbs/qawrite.php b/bbs/qawrite.php index 8be900081..d9ffd7b98 100644 --- a/bbs/qawrite.php +++ b/bbs/qawrite.php @@ -57,8 +57,7 @@ if(is_file($skin_file)) { } $is_dhtml_editor = false; - // 모바일에서는 DHTML 에디터 사용불가 - if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && !G5_IS_MOBILE) { + if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && (!is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE)) { $is_dhtml_editor = true; } diff --git a/bbs/write.php b/bbs/write.php index accff38db..d727f73be 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -392,7 +392,7 @@ if ($is_guest) { $is_dhtml_editor = false; $is_dhtml_editor_use = false; $editor_content_js = ''; -if(!G5_IS_MOBILE || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE) +if($config['cf_editor'] && !is_mobile() || defined('G5_IS_MOBILE_DHTML_USE') && G5_IS_MOBILE_DHTML_USE) $is_dhtml_editor_use = true; // 모바일에서는 G5_IS_MOBILE_DHTML_USE 설정에 따라 DHTML 에디터 적용