모바일에서 에디터 따로 사용하기
본문
board/common.php
if ($config['cf_editor'])
define('G5_EDITOR_LIB', G5_EDITOR_PATH."/{$config['cf_editor']}/editor.lib.php");
else
define('G5_EDITOR_LIB', G5_LIB_PATH."/editor.lib.php");
위에 소스를 아래처럼 바꾸세요
if ($config['cf_editor']) {
if (is_mobile()) $config['cf_editor'] = 'smarteditor2_mobile';
define('G5_EDITOR_LIB', G5_EDITOR_PATH."/{$config['cf_editor']}/editor.lib.php");
} else {
define('G5_EDITOR_LIB', G5_LIB_PATH."/editor.lib.php");
}
댓글목록
등록된 댓글이 없습니다.