From b23b5fa2f1521c5491058dd3a08c7f114e1996fb Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 7 May 2014 09:56:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=B4=EC=9A=A9=EA=B4=80=EB=A6=AC=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=88=84=EB=9D=BD=EB=90=9C=20js=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/contentform.php | 1 + plugin/editor/ckeditor4/editor.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"; }