충돌 수정
This commit is contained in:
@ -3,11 +3,17 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
function editor_html($id, $content, $is_dhtml_editor=true)
|
||||
{
|
||||
global $config, $w, $board;
|
||||
global $config, $w, $board, $write;
|
||||
global $editor_width, $editor_height;
|
||||
static $js = true;
|
||||
|
||||
if( $is_dhtml_editor && $content && !$w && (isset($board['bo_insert_content']) && !empty($board['bo_insert_content']) ) ){ //글쓰기 기본 내용 처리
|
||||
if(
|
||||
$is_dhtml_editor && $content &&
|
||||
(
|
||||
(!$w && (isset($board['bo_insert_content']) && !empty($board['bo_insert_content'])))
|
||||
|| ($w == 'u' && isset($write['wr_option']) && strpos($write['wr_option'], 'html') === false )
|
||||
)
|
||||
){ //글쓰기 기본 내용 처리
|
||||
if( preg_match('/\r|\n/', $content) && $content === strip_tags($content, '<a><strong><b>') ) { //textarea로 작성되고, html 내용이 없다면
|
||||
$content = nl2br($content);
|
||||
}
|
||||
@ -15,7 +21,7 @@ function editor_html($id, $content, $is_dhtml_editor=true)
|
||||
|
||||
$width = isset($editor_width) ? $editor_width : "100%";
|
||||
$height = isset($editor_height) ? $editor_height : "250px";
|
||||
if (defined(G5_PUNYCODE))
|
||||
if (defined('G5_PUNYCODE'))
|
||||
$editor_url = G5_PUNYCODE.'/'.G5_EDITOR_DIR.'/'.$config['cf_editor'];
|
||||
else
|
||||
$editor_url = G5_EDITOR_URL.'/'.$config['cf_editor'];
|
||||
|
||||
@ -3,10 +3,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
function editor_html($id, $content, $is_dhtml_editor=true)
|
||||
{
|
||||
global $g5, $config, $w, $board;
|
||||
global $g5, $config, $w, $board, $write;
|
||||
static $js = true;
|
||||
|
||||
if( $is_dhtml_editor && $content && !$w && (isset($board['bo_insert_content']) && !empty($board['bo_insert_content']) ) ){ //글쓰기 기본 내용 처리
|
||||
if(
|
||||
$is_dhtml_editor && $content &&
|
||||
(
|
||||
(!$w && (isset($board['bo_insert_content']) && !empty($board['bo_insert_content'])))
|
||||
|| ($w == 'u' && isset($write['wr_option']) && strpos($write['wr_option'], 'html') === false )
|
||||
)
|
||||
){ //글쓰기 기본 내용 처리
|
||||
if( preg_match('/\r|\n/', $content) && $content === strip_tags($content, '<a><strong><b>') ) { //textarea로 작성되고, html 내용이 없다면
|
||||
$content = nl2br($content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user