웹에디터 시작"; if ($is_dhtml_editor) $html .= ''; if ($is_dhtml_editor && $js) { $html .= "\n".''; $html .= "\n".''; $html .= "\n".''; $html .= "\n"; $js = false; } $smarteditor_class = $is_dhtml_editor ? "smarteditor2" : ""; $html .= "\n"; $html .= "\n웹 에디터 끝"; return $html; } // textarea 로 값을 넘긴다. javascript 반드시 필요 function get_editor_js($id, $is_dhtml_editor=true) { if ($is_dhtml_editor) { return "var {$id}_editor_data = oEditors.getById['{$id}'].getIR();\noEditors.getById['{$id}'].exec('UPDATE_CONTENTS_FIELD', []);\nif(jQuery.inArray(document.getElementById('{$id}').value.toLowerCase().replace(/^\s*|\s*$/g, ''), [' ','

 

','


','

','

','
','']) != -1){document.getElementById('{$id}').value='';}\n"; } else { return "var {$id}_editor = document.getElementById('{$id}');\n"; } } // textarea 의 값이 비어 있는지 검사 function chk_editor_js($id, $is_dhtml_editor=true) { if ($is_dhtml_editor) { return "if (!{$id}_editor_data || jQuery.inArray({$id}_editor_data.toLowerCase(), [' ','

 

','


','

','
']) != -1) { alert(\"내용을 입력해 주십시오.\"); oEditors.getById['{$id}'].exec('FOCUS'); return false; }\n"; } else { return "if (!{$id}_editor.value) { alert(\"내용을 입력해 주십시오.\"); {$id}_editor.focus(); return false; }\n"; } } ?>