diff --git a/adm/contentform.php b/adm/contentform.php index de2c6315d..730d3072b 100644 --- a/adm/contentform.php +++ b/adm/contentform.php @@ -159,6 +159,7 @@ function frmcontentform_check(f) errfld = ""; + check_field(f.co_id, "ID를 입력하세요."); check_field(f.co_subject, "제목을 입력하세요."); diff --git a/plugin/editor/ckeditor4/editor.lib.php b/plugin/editor/ckeditor4/editor.lib.php index 06ef5a1f3..29d7eeace 100644 --- a/plugin/editor/ckeditor4/editor.lib.php +++ b/plugin/editor/ckeditor4/editor.lib.php @@ -59,7 +59,7 @@ function get_editor_js($id, $is_dhtml_editor=true) function chk_editor_js($id, $is_dhtml_editor=true) { if ($is_dhtml_editor) { - return "if (!{$id}_editor_data) { alert(\"내용을 입력해 주십시오.\"); CKEDITOR.instances.{$id}.focus(); return false; }\nif (typeof(f.wr_content)!=\"undefined\") f.wr_content.value = {$id}_editor_data;\n"; + return "if (!{$id}_editor_data) { alert(\"내용을 입력해 주십시오.\"); CKEDITOR.instances.{$id}.focus(); return false; }\nif (typeof(f.{$id})!=\"undefined\") f.{$id}.value = {$id}_editor_data;\n"; } else { return "if (!{$id}_editor.value) { alert(\"내용을 입력해 주십시오.\"); {$id}_editor.focus(); return false; }\n"; }