diff --git a/modules/blog/blog.view.php b/modules/blog/blog.view.php index c954db6a4..ee0baf920 100644 --- a/modules/blog/blog.view.php +++ b/modules/blog/blog.view.php @@ -201,7 +201,7 @@ $option->enable_default_component = true; $option->enable_component = true; $option->resizable = true; - $option->height = 600; + $option->height = 400; $editor = $oEditorModel->getEditor($document_srl, $option); Context::set('editor', $editor); diff --git a/modules/board/board.view.php b/modules/board/board.view.php index 00708e3d0..c4d6f6503 100644 --- a/modules/board/board.view.php +++ b/modules/board/board.view.php @@ -177,7 +177,7 @@ $option->enable_default_component = true; $option->enable_component = true; $option->resizable = true; - $option->height = 600; + $option->height = 400; $editor = $oEditorModel->getEditor($document_srl, $option); Context::set('editor', $editor); @@ -279,7 +279,7 @@ Context::set('comment', $comment); // 댓글 에디터 세팅 - $this->setCommentEditor($comment_srl, 400); + $this->setCommentEditor($comment_srl, 300); $this->setTemplateFile('comment_form'); } diff --git a/modules/editor/editor.model.php b/modules/editor/editor.model.php index 429b9219a..d83edf135 100644 --- a/modules/editor/editor.model.php +++ b/modules/editor/editor.model.php @@ -13,25 +13,34 @@ * @brief 에디터를 return **/ function getEditor($upload_target_srl, $option = null) { - // 옵션 설정 + // 파일 업로드 유무 옵션 설정 if(!$option->allow_fileupload) $allow_fileupload = false; else $allow_fileupload = true; + // 자동 저장 유무 옵션 설정 if(!$option->enable_autosave) $enable_autosave = false; else $enable_autosave = true; + // 기본 에디터 컴포넌트 사용 설정 if(!$option->enable_default_component) $enable_default_component = false; else $enable_default_component = true; + // 확장 컴포넌트 사용 설정 if(!$option->enable_component) $enable_component = false; else $enable_component = true; + // 크기 조절 옵션 설정 if(!$option->resizable) $resizable = 'false'; else $resizable = 'true'; + // 높이 설정 if(!$option->height) $editor_height = 400; else $editor_height = $option->height; + // 스킨 설정 + if(!$option->skin) $skin = 'default'; + else $skin = $option->skin; + // 대상 문서 번호 설정 Context::set('upload_target_srl', $upload_target_srl); @@ -77,7 +86,7 @@ Context::set('editor_height', $editor_height); // 템플릿을 미리 컴파일해서 컴파일된 소스를 return - $tpl_path = $this->module_path.'tpl'; + $tpl_path = sprintf('%sskins/%s/', $this->module_path, $skin); $tpl_file = 'editor.html'; // editor_path를 지정 diff --git a/modules/editor/lang/en.lang.php b/modules/editor/lang/en.lang.php index 4535798d4..c7e43f544 100644 --- a/modules/editor/lang/en.lang.php +++ b/modules/editor/lang/en.lang.php @@ -27,4 +27,59 @@ $lang->cmd_disable = "Inactive"; $lang->cmd_enable = "Active"; + + $lang->edit->fontname = 'Font'; + $lang->edit->fontsize = 'Size'; + $lang->edit->use_paragraph = 'Paragraph Function'; + $lang->edit->fontlist = array( + "Gulim", + "Dodum", + "Batang", + "Goongseo", + "times", + "Courier", + "Tahoma", + "Arial", + ); + + $lang->edit->header = "Style"; + $lang->edit->header_list = array( + "h1" => "Subject 1", + "h2" => "Subject 2", + "h3" => "Subject 3", + "h4" => "Subject 4", + "h5" => "Subject 5", + "h6" => "Subject 6", + ); + + $lang->edit->submit = 'Submit'; + + $lang->edit->help_fontcolor = "Select font color"; + $lang->edit->help_fontbgcolor = "Select background color of font"; + $lang->edit->help_bold = "Make font bold"; + $lang->edit->help_italic = "Make italic font"; + $lang->edit->help_underline = "Underline font"; + $lang->edit->help_strike = "Strike font"; + $lang->edit->help_redo = "Redo"; + $lang->edit->help_undo = "Undo"; + $lang->edit->help_align_left = "Align left"; + $lang->edit->help_align_center = "Align center"; + $lang->edit->help_align_right = "Align right"; + $lang->edit->help_add_indent = "Add indent"; + $lang->edit->help_remove_indent = "Remove indent"; + $lang->edit->help_list_number = "Apply number list"; + $lang->edit->help_list_bullet = "Apply bullet list"; + $lang->edit->help_use_paragrapth = "Press Ctrl+Enter to use paragraph. (Press Alt+S to save)"; + + $lang->edit->upload = 'Attachment'; + $lang->edit->upload_file = 'Attach'; + $lang->edit->link_file = 'Insert to Content'; + $lang->edit->delete_selected = 'Delete Selected'; + + $lang->edit->icon_align_article = 'Occupy a paragraph'; + $lang->edit->icon_align_left = 'Align Left'; + $lang->edit->icon_align_middle = 'Align Center'; + $lang->edit->icon_align_right = 'Align Right'; + + $lang->about_dblclick_in_editor = 'You are able to set detail component configure by double-clicking on background, text, images, or quotations'; ?> diff --git a/modules/editor/lang/es.lang.php b/modules/editor/lang/es.lang.php index 06db5344d..df071d902 100644 --- a/modules/editor/lang/es.lang.php +++ b/modules/editor/lang/es.lang.php @@ -27,4 +27,59 @@ $lang->cmd_disable = "Activado"; $lang->cmd_enable = "Desactivado"; + + $lang->edit->fontname = 'Font'; + $lang->edit->fontsize = 'Size'; + $lang->edit->use_paragraph = 'Paragraph Function'; + $lang->edit->fontlist = array( + "Gulim", + "Dodum", + "Batang", + "Goongseo", + "times", + "Courier", + "Tahoma", + "Arial", + ); + + $lang->edit->header = "Style"; + $lang->edit->header_list = array( + "h1" => "Subject 1", + "h2" => "Subject 2", + "h3" => "Subject 3", + "h4" => "Subject 4", + "h5" => "Subject 5", + "h6" => "Subject 6", + ); + + $lang->edit->submit = 'Submit'; + + $lang->edit->help_fontcolor = "Select font color"; + $lang->edit->help_fontbgcolor = "Select background color of font"; + $lang->edit->help_bold = "Make font bold"; + $lang->edit->help_italic = "Make italic font"; + $lang->edit->help_underline = "Underline font"; + $lang->edit->help_strike = "Strike font"; + $lang->edit->help_redo = "Redo"; + $lang->edit->help_undo = "Undo"; + $lang->edit->help_align_left = "Align left"; + $lang->edit->help_align_center = "Align center"; + $lang->edit->help_align_right = "Align right"; + $lang->edit->help_add_indent = "Add indent"; + $lang->edit->help_remove_indent = "Remove indent"; + $lang->edit->help_list_number = "Apply number list"; + $lang->edit->help_list_bullet = "Apply bullet list"; + $lang->edit->help_use_paragrapth = "Press Ctrl+Enter to use paragraph. (Press Alt+S to save)"; + + $lang->edit->upload = 'Attachment'; + $lang->edit->upload_file = 'Attach'; + $lang->edit->link_file = 'Insert to Content'; + $lang->edit->delete_selected = 'Delete Selected'; + + $lang->edit->icon_align_article = 'Occupy a paragraph'; + $lang->edit->icon_align_left = 'Align Left'; + $lang->edit->icon_align_middle = 'Align Center'; + $lang->edit->icon_align_right = 'Align Right'; + + $lang->about_dblclick_in_editor = 'You are able to set detail component configure by double-clicking on background, text, images, or quotations'; ?> diff --git a/modules/editor/lang/jp.lang.php b/modules/editor/lang/jp.lang.php index 76c2f7b29..f0a27f189 100644 --- a/modules/editor/lang/jp.lang.php +++ b/modules/editor/lang/jp.lang.php @@ -27,4 +27,59 @@ $lang->cmd_disable = "未使用"; $lang->cmd_enable = "使用"; + + $lang->edit->fontname = 'フォント'; + $lang->edit->fontsize = 'サイズ'; + $lang->edit->use_paragraph = '段落機能'; + $lang->edit->fontlist = array( + "MS Pゴシック", + "MS P明朝", + "Osaka-等幅", + "ヒラギノ角ゴ Pro W3", + "times", + "Courier", + "Tahoma", + "Arial", + ); + + $lang->edit->header = "見出し"; + $lang->edit->header_list = array( + "h1" => "見出し1", + "h2" => "見出し2", + "h3" => "見出し3", + "h4" => "見出し4", + "h5" => "見出し5", + "h6" => "見出し6", + ); + + $lang->edit->submit = '送信'; + + $lang->edit->help_fontcolor = "テキストの色を指定します。"; + $lang->edit->help_fontbgcolor = "テキストの背景色を指定します。"; + $lang->edit->help_bold = "テキストを太字に指定します。"; + $lang->edit->help_italic = "テキストを斜体にします。"; + $lang->edit->help_underline = "テキストに下線(アンダーライン)を引きます。"; + $lang->edit->help_strike = "打ち消し線を引きます。"; + $lang->edit->help_redo = "直前に取り消した処理をもう一度繰り返して実行します。"; + $lang->edit->help_undo = "直前に行った操作や処理を取り消し元に戻します。"; + $lang->edit->help_align_left = "テキストを左揃えで表示します。"; + $lang->edit->help_align_center = "テキストを中央揃えで表示します。"; + $lang->edit->help_align_right = "テキストを右揃えで表示します。"; + $lang->edit->help_add_indent = "テキストの行頭の位置を右に寄せます。"; + $lang->edit->help_remove_indent = "インデント(字下げ)を除去します。"; + $lang->edit->help_list_number = "リスト項目に数字で順序を付けます。"; + $lang->edit->help_list_bullet = "記号でリスト項目を記述します。"; + $lang->edit->help_use_paragrapth = "段落機能を使用する場合は、「Ctrl+Enter」を押します(書き終わった後、「Alt+S」を押すと保存されます)。"; + + $lang->edit->upload = '添付'; + $lang->edit->upload_file = 'ファイル添付'; + $lang->edit->link_file = 'テキスト挿入'; + $lang->edit->delete_selected = '選択リスト削除'; + + $lang->edit->icon_align_article = '一段落'; + $lang->edit->icon_align_left = '左揃え'; + $lang->edit->icon_align_middle = '中央揃え'; + $lang->edit->icon_align_right = '右揃え'; + + $lang->about_dblclick_in_editor = '背景、文字、イメージ、引用文の上にカーソルを合わせ,ダブルクリックすると詳細設定できるコンポーネントを表示します。'; ?> diff --git a/modules/editor/lang/ko.lang.php b/modules/editor/lang/ko.lang.php index d8dc7bf10..4d0519454 100644 --- a/modules/editor/lang/ko.lang.php +++ b/modules/editor/lang/ko.lang.php @@ -27,4 +27,59 @@ $lang->cmd_disable = "비활성"; $lang->cmd_enable = "활성"; + + $lang->edit->fontname = '글꼴'; + $lang->edit->fontsize = '크기'; + $lang->edit->use_paragraph = '문단기능'; + $lang->edit->fontlist = array( + "굴림", + "돋움", + "바탕", + "궁서", + "times", + "Courier", + "Tahoma", + "Arial", + ); + + $lang->edit->header = "형식"; + $lang->edit->header_list = array( + "h1" => "제목 1", + "h2" => "제목 2", + "h3" => "제목 3", + "h4" => "제목 4", + "h5" => "제목 5", + "h6" => "제목 6", + ); + + $lang->edit->submit = '확인'; + + $lang->edit->help_fontcolor = "글자의 색상을 지정합니다"; + $lang->edit->help_fontbgcolor = "글자의 배경색상을 지정합니다"; + $lang->edit->help_bold = "글자를 진하게 합니다"; + $lang->edit->help_italic = "글자를 기울이게 합니다"; + $lang->edit->help_underline = "밑줄을 긋습니다"; + $lang->edit->help_strike = "취소선을 긋습니다"; + $lang->edit->help_redo = "다음 동작으로 돌아갑니다"; + $lang->edit->help_undo = "이전 동작으로 돌아갑니다"; + $lang->edit->help_align_left = "왼쪽 정렬을 합니다"; + $lang->edit->help_align_center = "가운데 정렬을 합니다"; + $lang->edit->help_align_right = "오른쪽 정렬을 합니다"; + $lang->edit->help_add_indent = "들여쓰기를 합니다"; + $lang->edit->help_remove_indent = "들여쓰기를 제거합니다"; + $lang->edit->help_list_number = "숫자로된 목록을 적용합니다"; + $lang->edit->help_list_bullet = "기호로된 목록을 적용합니다"; + $lang->edit->help_use_paragrapth = "문단 나누기를 하시려면 ctrl-엔터를 누르시면 됩니다. (글 작성완료후 alt-S를 누르면 저장이 됩니다)"; + + $lang->edit->upload = '첨부'; + $lang->edit->upload_file = '파일 첨부'; + $lang->edit->link_file = '본문 삽입'; + $lang->edit->delete_selected = '선택 삭제'; + + $lang->edit->icon_align_article = '한 문단을 차지'; + $lang->edit->icon_align_left = '글의 왼쪽으로'; + $lang->edit->icon_align_middle = '가운데 정렬'; + $lang->edit->icon_align_right = '글의 우측으로'; + + $lang->about_dblclick_in_editor = '배경, 글자, 이미지, 인용문등에서 더블클릭을 하시면 상세한 컴포넌트 설정이 가능합니다'; ?> diff --git a/modules/editor/lang/zh-CN.lang.php b/modules/editor/lang/zh-CN.lang.php index adf188945..42fd27473 100644 --- a/modules/editor/lang/zh-CN.lang.php +++ b/modules/editor/lang/zh-CN.lang.php @@ -27,4 +27,59 @@ $lang->cmd_disable = "非激活"; $lang->cmd_enable = "激活"; + + $lang->edit->fontname = '字体'; + $lang->edit->fontsize = '大小'; + $lang->edit->use_paragraph = '段落功能'; + $lang->edit->fontlist = array( + "仿宋_GB2312", + "黑体", + "楷体_GB2312", + "宋体", + "times", + "Courier", + "Tahoma", + "Arial", + ); + + $lang->edit->header = "样式"; + $lang->edit->header_list = array( + "h1" => "标题 1", + "h2" => "标题 2", + "h3" => "标题 3", + "h4" => "标题 4", + "h5" => "标题 5", + "h6" => "标题 6", + ); + + $lang->edit->submit = '确认'; + + $lang->edit->help_fontcolor = "文本颜色"; + $lang->edit->help_fontbgcolor = "背景颜色"; + $lang->edit->help_bold = "粗体"; + $lang->edit->help_italic = "斜体"; + $lang->edit->help_underline = "下划线"; + $lang->edit->help_strike = "取消线"; + $lang->edit->help_redo = "重新操作"; + $lang->edit->help_undo = "返回操作"; + $lang->edit->help_align_left = "左对齐"; + $lang->edit->help_align_center = "居中对齐"; + $lang->edit->help_align_right = "右对齐"; + $lang->edit->help_add_indent = "缩进"; + $lang->edit->help_remove_indent = "清除缩进"; + $lang->edit->help_list_number = "有序列表"; + $lang->edit->help_list_bullet = "无序列表"; + $lang->edit->help_use_paragrapth = "分段请按 ctrl+回车. (发表主题快捷键:alt+S)"; + + $lang->edit->upload = '上传'; + $lang->edit->upload_file = '上传附件'; + $lang->edit->link_file = '插入内容'; + $lang->edit->delete_selected = '删除所选'; + + $lang->edit->icon_align_article = '占一个段落'; + $lang->edit->icon_align_left = '文本左侧'; + $lang->edit->icon_align_middle = '居中对齐'; + $lang->edit->icon_align_right = '文本右侧'; + + $lang->about_dblclick_in_editor = '双击背景, 文本, 图片, 引用即可对其相关组件进行详细设置。'; ?> diff --git a/modules/editor/skins/default/css/editor.css b/modules/editor/skins/default/css/editor.css new file mode 100644 index 000000000..f25c0d957 --- /dev/null +++ b/modules/editor/skins/default/css/editor.css @@ -0,0 +1,50 @@ +@charset "utf-8"; + +.xeEditor { } +.xeEditor .optionABC { clear:both; width:100%; border-bottom:1px solid #c2c2c2; overflow:hidden; background:#ffffff url(../images/bgBoardEditorOption.gif) no-repeat -3px bottom;} +.xeEditor .optionABC .selectGroup { white-space:nowrap; display:block; height:21px; margin:0 .5em 0 0; padding-left:1em; float:left;} +.xeEditor .optionABC .buttonGroup { white-space:nowrap; position:relative; display:block; margin:0 .5em 0 0; float:left; height:21px; overflow:hidden; padding-left:2px;} +.xeEditor .optionABC .buttonGroup img { float:left; display:block; margin-left:-1px; cursor:pointer;} +.xeEditor .optionA, +.xeEditor .optionB, +.xeEditor .optionC { float:left; background:#ffffff url(../images/bgBoardEditorOption.gif) no-repeat left bottom; padding:.5em 0 .5em .7em; overflow:hidden;} +.xeEditor .optionA *, +.xeEditor .optionB *, +.xeEditor .optionC * { vertical-align:middle;} +.xeEditor .optionA { background-position:-3px bottom; padding-left:0;} +.xeEditor .optionA select option { font-size:.9em; } +.xeEditor .optionDE { width:100%; clear:both; overflow:hidden; background:#f8f8f8; border-bottom:1px solid #e1e1e1; height:29px;} +.xeEditor .optionDE .buttonGroup { white-space:nowrap; position:relative; display:block; float:left; height:21px; overflow:hidden; padding-left:2px;} +.xeEditor .optionDE img { float:left; display:block; margin-right:.5em; cursor:pointer;} +.xeEditor .optionD { padding:.5em 0 .5em .8em; overflow:hidden; float:left; border-right:1px solid #e0e0e0;} +.xeEditor .optionE { padding:4px 0 0 8px; overflow:hidden; border-left:1px solid #ffffff; float:left;} + +.xeEditor .editorInfo { background:#fbfbfb; padding:.5em; border:1px solid #e1e1dd; color:#999999; position:relative; margin:5px 20px 0 20px;} +.xeEditor .close { cursor:pointer; position:absolute; top:3px; right:3px; _top:3px; _right:25px;} +.xeEditor .editor_iframe_box { background:#ffffff; clear:both; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:.5em; margin:0 20px 0 20px; } + +.xeEditor .textAreaDragIndicator { text-align:center; background:url(../images/lineTextAreaDrag.gif) repeat-x left center; padding:5px 0 5px 0; } +.xeEditor .textAreaDragIndicatorBar { background:url(../images/buttonTextAreaDrag.gif) no-repeat center; cursor:move;height:14px;} + +.xeEditor .editor_info { clear:both; padding:5px 20px 5px 20px; overflow:hidden;} +.xeEditor .editor_info .editor_option { float:left; color:#888888; } +.xeEditor .editor_info .editor_autosaved_message { color:#888888; float:right; } + +.xeEditor .inputTypeTextArea { background:#fbfbfb; padding:1em; width:94%;} +.xeEditor #textAreaDrag {} +.xeEditor .fileAttach { padding:0 1em .5em 1em;} +.xeEditor .fileAttach .preview { padding:5px; width:110px; height:110px; border:1px solid #e1e1dd; background:#fbfbfb; float:left; margin-right:.5em;} +.xeEditor .fileAttach .preview img { width:110px; height:110px; float:left; display:block;} +.xeEditor .fileAttach .fileListArea { float:left; width:50%; margin-right:.7em; padding-bottom:.5em; margin-bottom:1em} +.xeEditor .fileAttach .fileListArea .fileList { overflow:auto; width:100%; height:auto; border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; margin-bottom:.3em; font-size:11px;} +.xeEditor .fileAttach .fileListArea .fileList option { line-height:100%; padding-left:.5em;} +.xeEditor .fileAttach .fileListArea span.file_attach_info { color:#3f4040; font-size:11px; text-align:left;} +.xeEditor .fileAttach .fileListArea span.file_attach_info strong { color:#ff6600; font-size:11px; font-weight:bold; } +.xeEditor .fileAttach .fileUploadControl { margin-bottom:5px; } + +.xeEditor .fileAttach .fileUploadControl .uploaderButton { display:block; cursor:pointer; background:url(../images/buttonTypeBCenter.gif) repeat-x left center; line-height:100%; overflow:visible; color:#3f4040; margin:0 1px; font-size:.9em; white-space:nowrap;} +.xeEditor .fileAttach .fileUploadControl .uploaderButton:hover { text-decoration:none;} +.xeEditor .fileAttach .fileUploadControl .uploaderButton img { vertical-align:middle;} +.xeEditor .fileAttach .fileUploadControl .uploaderButton .leftCap { width:2px; height:21px; background:url(../images/buttonTypeBLeft.gif) no-repeat; margin:0 .3em 0 0; position:relative; left:-1px;} +.xeEditor .fileAttach .fileUploadControl .uploaderButton .rightCap { width:2px; height:21px; background:url(../images/buttonTypeBRight.gif) no-repeat; margin:0 -1px 0 .4em;} +.xeEditor .fileAttach .fileUploadControl .uploaderButton .icon { margin:0 .2em;} diff --git a/modules/editor/skins/default/editor.html b/modules/editor/skins/default/editor.html new file mode 100644 index 000000000..83ab54470 --- /dev/null +++ b/modules/editor/skins/default/editor.html @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+
+ + + + + +
+ +
+ {$lang->edit->help_bold} + {$lang->edit->help_italic} + {$lang->edit->help_underline} + {$lang->edit->help_fontcolor} + {$lang->edit->help_fontbgcolor} +
+
+ +
+
+ {$lang->edit->help_align_left} + {$lang->edit->help_align_center} + {$lang->edit->help_align_right} + +
+ + +
+ + +
+ + + + +
+
+
+ + + {$component->title} + + +
+
+
+ +
+ + +
+ {$lang->about_dblclick_in_editor} + + close +
+ + +
+
+ +
+
 
+
+ +
+ +
+ + + + + + +
+ + +
+ preview +
+ + +
+ + +
+ + + + + +
+
+ +
+ + diff --git a/modules/editor/tpl/images/bgBoardEditorOption.gif b/modules/editor/skins/default/images/bgBoardEditorOption.gif similarity index 100% rename from modules/editor/tpl/images/bgBoardEditorOption.gif rename to modules/editor/skins/default/images/bgBoardEditorOption.gif diff --git a/modules/editor/tpl/images/blank.gif b/modules/editor/skins/default/images/blank.gif similarity index 100% rename from modules/editor/tpl/images/blank.gif rename to modules/editor/skins/default/images/blank.gif diff --git a/modules/editor/tpl/images/buttonClose.gif b/modules/editor/skins/default/images/buttonClose.gif similarity index 100% rename from modules/editor/tpl/images/buttonClose.gif rename to modules/editor/skins/default/images/buttonClose.gif diff --git a/modules/editor/tpl/images/buttonTextAreaDrag.gif b/modules/editor/skins/default/images/buttonTextAreaDrag.gif similarity index 100% rename from modules/editor/tpl/images/buttonTextAreaDrag.gif rename to modules/editor/skins/default/images/buttonTextAreaDrag.gif diff --git a/modules/editor/tpl/images/buttonTypeBCenter.gif b/modules/editor/skins/default/images/buttonTypeBCenter.gif similarity index 100% rename from modules/editor/tpl/images/buttonTypeBCenter.gif rename to modules/editor/skins/default/images/buttonTypeBCenter.gif diff --git a/modules/editor/tpl/images/buttonTypeBLeft.gif b/modules/editor/skins/default/images/buttonTypeBLeft.gif similarity index 100% rename from modules/editor/tpl/images/buttonTypeBLeft.gif rename to modules/editor/skins/default/images/buttonTypeBLeft.gif diff --git a/modules/editor/tpl/images/buttonTypeBRight.gif b/modules/editor/skins/default/images/buttonTypeBRight.gif similarity index 100% rename from modules/editor/tpl/images/buttonTypeBRight.gif rename to modules/editor/skins/default/images/buttonTypeBRight.gif diff --git a/modules/editor/tpl/images/editor_btn_ac.gif b/modules/editor/skins/default/images/editor_btn_ac.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_ac.gif rename to modules/editor/skins/default/images/editor_btn_ac.gif diff --git a/modules/editor/tpl/images/editor_btn_aj.gif b/modules/editor/skins/default/images/editor_btn_aj.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_aj.gif rename to modules/editor/skins/default/images/editor_btn_aj.gif diff --git a/modules/editor/tpl/images/editor_btn_al.gif b/modules/editor/skins/default/images/editor_btn_al.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_al.gif rename to modules/editor/skins/default/images/editor_btn_al.gif diff --git a/modules/editor/tpl/images/editor_btn_ar.gif b/modules/editor/skins/default/images/editor_btn_ar.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_ar.gif rename to modules/editor/skins/default/images/editor_btn_ar.gif diff --git a/modules/editor/tpl/images/editor_btn_b.gif b/modules/editor/skins/default/images/editor_btn_b.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_b.gif rename to modules/editor/skins/default/images/editor_btn_b.gif diff --git a/modules/editor/tpl/images/editor_btn_bg.gif b/modules/editor/skins/default/images/editor_btn_bg.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_bg.gif rename to modules/editor/skins/default/images/editor_btn_bg.gif diff --git a/modules/editor/tpl/images/editor_btn_c.gif b/modules/editor/skins/default/images/editor_btn_c.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_c.gif rename to modules/editor/skins/default/images/editor_btn_c.gif diff --git a/modules/editor/tpl/images/editor_btn_i.gif b/modules/editor/skins/default/images/editor_btn_i.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_i.gif rename to modules/editor/skins/default/images/editor_btn_i.gif diff --git a/modules/editor/tpl/images/editor_btn_id.gif b/modules/editor/skins/default/images/editor_btn_id.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_id.gif rename to modules/editor/skins/default/images/editor_btn_id.gif diff --git a/modules/editor/tpl/images/editor_btn_lh.gif b/modules/editor/skins/default/images/editor_btn_lh.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_lh.gif rename to modules/editor/skins/default/images/editor_btn_lh.gif diff --git a/modules/editor/tpl/images/editor_btn_od.gif b/modules/editor/skins/default/images/editor_btn_od.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_od.gif rename to modules/editor/skins/default/images/editor_btn_od.gif diff --git a/modules/editor/tpl/images/editor_btn_ol.gif b/modules/editor/skins/default/images/editor_btn_ol.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_ol.gif rename to modules/editor/skins/default/images/editor_btn_ol.gif diff --git a/modules/editor/tpl/images/editor_btn_tag.gif b/modules/editor/skins/default/images/editor_btn_tag.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_tag.gif rename to modules/editor/skins/default/images/editor_btn_tag.gif diff --git a/modules/editor/tpl/images/editor_btn_u.gif b/modules/editor/skins/default/images/editor_btn_u.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_u.gif rename to modules/editor/skins/default/images/editor_btn_u.gif diff --git a/modules/editor/tpl/images/editor_btn_ul.gif b/modules/editor/skins/default/images/editor_btn_ul.gif similarity index 100% rename from modules/editor/tpl/images/editor_btn_ul.gif rename to modules/editor/skins/default/images/editor_btn_ul.gif diff --git a/modules/editor/tpl/images/lineTextAreaDrag.gif b/modules/editor/skins/default/images/lineTextAreaDrag.gif similarity index 100% rename from modules/editor/tpl/images/lineTextAreaDrag.gif rename to modules/editor/skins/default/images/lineTextAreaDrag.gif diff --git a/modules/editor/skins/default/skin.xml b/modules/editor/skins/default/skin.xml new file mode 100644 index 000000000..7e2a3ed08 --- /dev/null +++ b/modules/editor/skins/default/skin.xml @@ -0,0 +1,29 @@ + + + 제로보드XE 게시판 기본 스킨(목록형) + ゼロボードXE掲示板のデフォルトスキン(リストスタイル) + Zeroboard XE Board 基本皮肤(目录型) + ZeroboardXE Basic Board Skin (List Style) + + (주)NHN + (株)NHN + (株)NHN + NHN Corp + + 디자인 : 서기정 (http://blog.naver.com/addcozy) + HTML/CSS : 정찬명 (http://naradesign.net) + + + デザイン:ソギジョン (http://blog.naver.com/addcozy) + HTML/CSS:ジョンチャンミョン (http://naradesign.net) + + + 设计 : Ki-Jeong Seo (http://blog.naver.com/addcozy) + HTML/CSS : Chan-Myung Jeong (http://naradesign.net) + + + Design : Ki-Jeong Seo (http://blog.naver.com/addcozy) + HTML/CSS : Chan-Myung Jeong (http://naradesign.net) + + + diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index fde8e8b2d..c94404cb8 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -19,22 +19,11 @@ function editorGetIFrame(upload_target_srl) { return xGetElementById(obj_id); } -// editor 초기화를 onload이벤트 후에 시작시킴 -function editorInit(upload_target_srl, resizable, height) { - xAddEventListener(window, 'load', function() { editorStart(upload_target_srl, resizable, height); }); -} - // editor 시작 (upload_target_srl로 iframe객체를 얻어서 쓰기 모드로 전환) -function editorStart(upload_target_srl, resizable, height) { - if(typeof(height)=="undefined"||!height) height = 350; +function editorStart(upload_target_srl, resizable, editor_height) { if(typeof(resizable)=="undefined"||!resizable) resizable = false; else resizable = true; - // iframe_area를 찾음 - var iframe_area = xGetElementById("editor_iframe_area_"+upload_target_srl); - //xHeight(iframe_area, height+10); - xInnerHtml(iframe_area, ''); - // iframe obj를 찾음 var iframe_obj = editorGetIFrame(upload_target_srl); if(!iframe_obj) return; @@ -42,6 +31,7 @@ function editorStart(upload_target_srl, resizable, height) { // 현 에디터를 감싸고 있는 form문을 찾아서 content object를 찾아서 내용 sync var fo_obj = iframe_obj.parentNode; while(fo_obj.nodeName != 'FORM') { fo_obj = fo_obj.parentNode; } + // saved document에 대한 체크 if(typeof(fo_obj._saved_doc_title)!="undefined" ) { var saved_title = fo_obj._saved_doc_title.value; @@ -61,21 +51,19 @@ function editorStart(upload_target_srl, resizable, height) { // 대상 form의 content object에서 데이터를 구함 var content = fo_obj.content.value; + if(!content && !xIE4Up) content = "
"; // iframe내의 document object var contentDocument = iframe_obj.contentWindow.document; - // editing가능하도록 설정 시작 - // 기본 내용 작성 var contentHtml = ''+ ''+ ''+ ''+ ''+ - ''+ ''+ content+ @@ -84,6 +72,7 @@ function editorStart(upload_target_srl, resizable, height) { contentDocument.designMode = 'on'; try { contentDocument.execCommand("undo", false, null); + contentDocument.execCommand("useCSS", false, true); } catch (e) { } contentDocument.open("text/html","replace"); @@ -114,7 +103,6 @@ function editorStart(upload_target_srl, resizable, height) { // 크기 변경 불가일 경우 드래그바 숨김 if(resizable == false) xGetElementById("editor_drag_bar_"+upload_target_srl).style.display = "none"; - if(typeof(fixAdminLayoutFooter)=='function') fixAdminLayoutFooter(height); } // 여러개의 편집기를 예상하여 전역 배열 변수에 form, iframe의 정보를 넣음 @@ -702,8 +690,8 @@ function eOptionClick(obj) { } // Editor Info Close -function closeEditorInfo() { - xGetElementById('editorInfo').style.display='none'; +function closeEditorInfo(upload_target_srl) { + xGetElementById('editorInfo_'+upload_target_srl).style.display='none'; var expire = new Date(); expire.setTime(expire.getTime()+ (7000 * 24 * 3600000)); xSetCookie('EditorInfo', '1', expire); diff --git a/modules/editor/tpl/js/uploader.js b/modules/editor/tpl/js/uploader.js index 32bd31490..109e901f7 100755 --- a/modules/editor/tpl/js/uploader.js +++ b/modules/editor/tpl/js/uploader.js @@ -93,7 +93,7 @@ function editor_display_uploaded_file(upload_target_srl) { _prev_upload_target_srl = 0; } else return; } - var url = "./?act=procFileDelete&upload_target_srl="+upload_target_srl+"&mid="+current_url.getQuery('mid'); + var url = request_uri + "?act=procFileDelete&upload_target_srl="+upload_target_srl+"&mid="+current_url.getQuery('mid'); // iframe에 url을 보내버림 var iframe_obj = xGetElementById('tmp_upload_iframe'); @@ -160,7 +160,7 @@ function editor_upload_clear_list(upload_target_srl) { while(obj.options.length) { obj.remove(0); } - var preview_obj = xGetElementById('uploaded_file_preview_box_'+upload_target_srl); + var preview_obj = xGetElementById('preview_uploaded_'+upload_target_srl); xInnerHtml(preview_obj,'') } @@ -230,7 +230,7 @@ function editor_remove_file(upload_target_srl) { var fo_obj = obj; while(fo_obj.nodeName != 'FORM') { fo_obj = fo_obj.parentNode; } var mid = fo_obj.mid.value; - var url = "./?act=procFileDelete&upload_target_srl="+upload_target_srl+"&file_srl="+file_srl+"&mid="+current_url.getQuery('mid'); + var url = request_uri+"/?act=procFileDelete&upload_target_srl="+upload_target_srl+"&file_srl="+file_srl+"&mid="+current_url.getQuery('mid'); // iframe에 url을 보내버림 var iframe_obj = xGetElementById('tmp_upload_iframe'); @@ -238,7 +238,7 @@ function editor_remove_file(upload_target_srl) { iframe_obj.contentWindow.document.location.href=url; - var preview_obj = xGetElementById('uploaded_file_preview_box_'+upload_target_srl); + var preview_obj = xGetElementById('preview_uploaded_'+upload_target_srl); xInnerHtml(preview_obj, ""); } @@ -269,7 +269,7 @@ function editor_insert_file(upload_target_srl) { var fo_obj = obj; while(fo_obj.nodeName != 'FORM') { fo_obj = fo_obj.parentNode; } var mid = fo_obj.mid.value; - var url = "./?module=file&act=procFileDownload&file_srl="+file_srl+"&sid="+sid; + var url = request_uri+"/?module=file&act=procFileDownload&file_srl="+file_srl+"&sid="+sid; openComponent("url_link", upload_target_srl, url); } } diff --git a/modules/editor/tpl/lang/en.lang.php b/modules/editor/tpl/lang/en.lang.php deleted file mode 100644 index 9ac34d1ef..000000000 --- a/modules/editor/tpl/lang/en.lang.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @brief English Language Pack (Basic Things) - **/ - - $lang->edit->fontname = 'Font'; - $lang->edit->fontsize = 'Size'; - $lang->edit->use_paragraph = 'Paragraph Function'; - $lang->edit->fontlist = array( - "Gulim", - "Dodum", - "Batang", - "Goongseo", - "times", - "Courier", - "Tahoma", - "Arial", - ); - - $lang->edit->header = "Style"; - $lang->edit->header_list = array( - "h1" => "Subject 1", - "h2" => "Subject 2", - "h3" => "Subject 3", - "h4" => "Subject 4", - "h5" => "Subject 5", - "h6" => "Subject 6", - ); - - $lang->edit->submit = 'Submit'; - - $lang->edit->help_fontcolor = "Select font color"; - $lang->edit->help_fontbgcolor = "Select background color of font"; - $lang->edit->help_bold = "Make font bold"; - $lang->edit->help_italic = "Make italic font"; - $lang->edit->help_underline = "Underline font"; - $lang->edit->help_strike = "Strike font"; - $lang->edit->help_redo = "Redo"; - $lang->edit->help_undo = "Undo"; - $lang->edit->help_align_left = "Align left"; - $lang->edit->help_align_center = "Align center"; - $lang->edit->help_align_right = "Align right"; - $lang->edit->help_add_indent = "Add indent"; - $lang->edit->help_remove_indent = "Remove indent"; - $lang->edit->help_list_number = "Apply number list"; - $lang->edit->help_list_bullet = "Apply bullet list"; - $lang->edit->help_use_paragrapth = "Press Ctrl+Enter to use paragraph. (Press Alt+S to save)"; - - $lang->edit->upload = 'Attachment'; - $lang->edit->upload_file = 'Attach'; - $lang->edit->link_file = 'Insert to Content'; - $lang->edit->delete_selected = 'Delete Selected'; - - $lang->edit->icon_align_article = 'Occupy a paragraph'; - $lang->edit->icon_align_left = 'Align Left'; - $lang->edit->icon_align_middle = 'Align Center'; - $lang->edit->icon_align_right = 'Align Right'; - - $lang->about_dblclick_in_editor = 'You are able to set detail component configure by double-clicking on background, text, images, or quotations'; -?> diff --git a/modules/editor/tpl/lang/jp.lang.php b/modules/editor/tpl/lang/jp.lang.php deleted file mode 100644 index ccccecc1f..000000000 --- a/modules/editor/tpl/lang/jp.lang.php +++ /dev/null @@ -1,62 +0,0 @@ - 翻訳:RisaPapa - * @brief 日本語言語パッケージ(基本的な内容のみ) - **/ - - $lang->edit->fontname = 'フォント'; - $lang->edit->fontsize = 'サイズ'; - $lang->edit->use_paragraph = '段落機能'; - $lang->edit->fontlist = array( - "MS Pゴシック", - "MS P明朝", - "Osaka-等幅", - "ヒラギノ角ゴ Pro W3", - "times", - "Courier", - "Tahoma", - "Arial", - ); - - $lang->edit->header = "見出し"; - $lang->edit->header_list = array( - "h1" => "見出し1", - "h2" => "見出し2", - "h3" => "見出し3", - "h4" => "見出し4", - "h5" => "見出し5", - "h6" => "見出し6", - ); - - $lang->edit->submit = '送信'; - - $lang->edit->help_fontcolor = "テキストの色を指定します。"; - $lang->edit->help_fontbgcolor = "テキストの背景色を指定します。"; - $lang->edit->help_bold = "テキストを太字に指定します。"; - $lang->edit->help_italic = "テキストを斜体にします。"; - $lang->edit->help_underline = "テキストに下線(アンダーライン)を引きます。"; - $lang->edit->help_strike = "打ち消し線を引きます。"; - $lang->edit->help_redo = "直前に取り消した処理をもう一度繰り返して実行します。"; - $lang->edit->help_undo = "直前に行った操作や処理を取り消し元に戻します。"; - $lang->edit->help_align_left = "テキストを左揃えで表示します。"; - $lang->edit->help_align_center = "テキストを中央揃えで表示します。"; - $lang->edit->help_align_right = "テキストを右揃えで表示します。"; - $lang->edit->help_add_indent = "テキストの行頭の位置を右に寄せます。"; - $lang->edit->help_remove_indent = "インデント(字下げ)を除去します。"; - $lang->edit->help_list_number = "リスト項目に数字で順序を付けます。"; - $lang->edit->help_list_bullet = "記号でリスト項目を記述します。"; - $lang->edit->help_use_paragrapth = "段落機能を使用する場合は、「Ctrl+Enter」を押します(書き終わった後、「Alt+S」を押すと保存されます)。"; - - $lang->edit->upload = '添付'; - $lang->edit->upload_file = 'ファイル添付'; - $lang->edit->link_file = 'テキスト挿入'; - $lang->edit->delete_selected = '選択リスト削除'; - - $lang->edit->icon_align_article = '一段落'; - $lang->edit->icon_align_left = '左揃え'; - $lang->edit->icon_align_middle = '中央揃え'; - $lang->edit->icon_align_right = '右揃え'; - - $lang->about_dblclick_in_editor = '背景、文字、イメージ、引用文の上にカーソルを合わせ,ダブルクリックすると詳細設定できるコンポーネントを表示します。'; -?> diff --git a/modules/editor/tpl/lang/ko.lang.php b/modules/editor/tpl/lang/ko.lang.php deleted file mode 100644 index 0d462a2db..000000000 --- a/modules/editor/tpl/lang/ko.lang.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @brief 한국어 언어팩 (기본적인 내용만 수록) - **/ - - $lang->edit->fontname = '글꼴'; - $lang->edit->fontsize = '크기'; - $lang->edit->use_paragraph = '문단기능'; - $lang->edit->fontlist = array( - "굴림", - "돋움", - "바탕", - "궁서", - "times", - "Courier", - "Tahoma", - "Arial", - ); - - $lang->edit->header = "형식"; - $lang->edit->header_list = array( - "h1" => "제목 1", - "h2" => "제목 2", - "h3" => "제목 3", - "h4" => "제목 4", - "h5" => "제목 5", - "h6" => "제목 6", - ); - - $lang->edit->submit = '확인'; - - $lang->edit->help_fontcolor = "글자의 색상을 지정합니다"; - $lang->edit->help_fontbgcolor = "글자의 배경색상을 지정합니다"; - $lang->edit->help_bold = "글자를 진하게 합니다"; - $lang->edit->help_italic = "글자를 기울이게 합니다"; - $lang->edit->help_underline = "밑줄을 긋습니다"; - $lang->edit->help_strike = "취소선을 긋습니다"; - $lang->edit->help_redo = "다음 동작으로 돌아갑니다"; - $lang->edit->help_undo = "이전 동작으로 돌아갑니다"; - $lang->edit->help_align_left = "왼쪽 정렬을 합니다"; - $lang->edit->help_align_center = "가운데 정렬을 합니다"; - $lang->edit->help_align_right = "오른쪽 정렬을 합니다"; - $lang->edit->help_add_indent = "들여쓰기를 합니다"; - $lang->edit->help_remove_indent = "들여쓰기를 제거합니다"; - $lang->edit->help_list_number = "숫자로된 목록을 적용합니다"; - $lang->edit->help_list_bullet = "기호로된 목록을 적용합니다"; - $lang->edit->help_use_paragrapth = "문단 나누기를 하시려면 ctrl-엔터를 누르시면 됩니다. (글 작성완료후 alt-S를 누르면 저장이 됩니다)"; - - $lang->edit->upload = '첨부'; - $lang->edit->upload_file = '파일 첨부'; - $lang->edit->link_file = '본문 삽입'; - $lang->edit->delete_selected = '선택 삭제'; - - $lang->edit->icon_align_article = '한 문단을 차지'; - $lang->edit->icon_align_left = '글의 왼쪽으로'; - $lang->edit->icon_align_middle = '가운데 정렬'; - $lang->edit->icon_align_right = '글의 우측으로'; - - $lang->about_dblclick_in_editor = '배경, 글자, 이미지, 인용문등에서 더블클릭을 하시면 상세한 컴포넌트 설정이 가능합니다'; -?> diff --git a/modules/editor/tpl/lang/zh-CN.lang.php b/modules/editor/tpl/lang/zh-CN.lang.php deleted file mode 100644 index 2c5dd200a..000000000 --- a/modules/editor/tpl/lang/zh-CN.lang.php +++ /dev/null @@ -1,62 +0,0 @@ - - * @brief 简体中文语言包 (只收录基本内容) - **/ - - $lang->edit->fontname = '字体'; - $lang->edit->fontsize = '大小'; - $lang->edit->use_paragraph = '段落功能'; - $lang->edit->fontlist = array( - "仿宋_GB2312", - "黑体", - "楷体_GB2312", - "宋体", - "times", - "Courier", - "Tahoma", - "Arial", - ); - - $lang->edit->header = "样式"; - $lang->edit->header_list = array( - "h1" => "标题 1", - "h2" => "标题 2", - "h3" => "标题 3", - "h4" => "标题 4", - "h5" => "标题 5", - "h6" => "标题 6", - ); - - $lang->edit->submit = '确认'; - - $lang->edit->help_fontcolor = "文本颜色"; - $lang->edit->help_fontbgcolor = "背景颜色"; - $lang->edit->help_bold = "粗体"; - $lang->edit->help_italic = "斜体"; - $lang->edit->help_underline = "下划线"; - $lang->edit->help_strike = "取消线"; - $lang->edit->help_redo = "重新操作"; - $lang->edit->help_undo = "返回操作"; - $lang->edit->help_align_left = "左对齐"; - $lang->edit->help_align_center = "居中对齐"; - $lang->edit->help_align_right = "右对齐"; - $lang->edit->help_add_indent = "缩进"; - $lang->edit->help_remove_indent = "清除缩进"; - $lang->edit->help_list_number = "有序列表"; - $lang->edit->help_list_bullet = "无序列表"; - $lang->edit->help_use_paragrapth = "分段请按 ctrl+回车. (发表主题快捷键:alt+S)"; - - $lang->edit->upload = '上传'; - $lang->edit->upload_file = '上传附件'; - $lang->edit->link_file = '插入内容'; - $lang->edit->delete_selected = '删除所选'; - - $lang->edit->icon_align_article = '占一个段落'; - $lang->edit->icon_align_left = '文本左侧'; - $lang->edit->icon_align_middle = '居中对齐'; - $lang->edit->icon_align_right = '文本右侧'; - - $lang->about_dblclick_in_editor = '双击背景, 文本, 图片, 引用即可对其相关组件进行详细设置。'; -?>