diff --git a/hwe/b_dipcenter.php b/hwe/b_dipcenter.php index a0a3a0ec..4963108e 100644 --- a/hwe/b_dipcenter.php +++ b/hwe/b_dipcenter.php @@ -54,14 +54,20 @@ var editable = =5?'true':'false')?>; + + + + + + diff --git a/hwe/index.php b/hwe/index.php index 330f1852..07551fe5 100644 --- a/hwe/index.php +++ b/hwe/index.php @@ -114,7 +114,7 @@ $(function(){ - + @@ -200,7 +200,7 @@ echo " ?> 접속중인 국가: -
【 국가방침 】
+
【 국가방침 】
【 접속자 】 userGrade >= 5) { diff --git a/hwe/js/dipcenter.js b/hwe/js/dipcenter.js index 91b93ea8..2be227c9 100644 --- a/hwe/js/dipcenter.js +++ b/hwe/js/dipcenter.js @@ -4,6 +4,8 @@ jQuery(function($){ +jQuery.trumbowyg.langs.ko.fontFamily = '글꼴'; + function guiEditorInit($obj, editable){ var $submitBtn = $obj.find('.submit'); var $noticeInput = $obj.find('.input_form'); @@ -19,8 +21,41 @@ function guiEditorInit($obj, editable){ autogrow: true, autogrowOnEnter: true, lang: 'ko', - removeformatPasted: true - + removeformatPasted: true, + imageWidthModalEdit: true, + minimalLinks: true, + btns: [ + ['viewHTML'], + ['undo', 'redo'], // Only supported in Blink browsers + ['formatting'], + ['fontfamily', 'fontsize'], + ['foreColor', 'backColor'], + ['emoji'], + ['strong', 'em', 'del'], + ['link'], + ['insertImage'], + ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'], + ['unorderedList', 'orderedList'], + ['horizontalRule'], + ['removeformat'], + ['fullscreen'] + ], + plugins: { + fontfamily : { + fontList:[ + {name:'맑은 고딕', family:"'맑은 고딕'"}, + {name:'나눔 고딕', family:"'Nanum Gothic', sans-serif"}, + {name:'나눔 명조', family:"'Nanum Myeongjo', serif"}, + {name:'나눔손글씨 펜체', family:"'Nanum Pen Script', cursive"}, + {name:'굴림', family:"'굴림'"}, + {name:'굴림체', family:"'굴림체'"}, + {name:'바탕', family:"'바탕'"}, + {name:'바탕체', family:"'바탕체'"}, + {name:'궁서', family:"'궁서'"}, + {name:'궁서체', family:"'궁서체'"}, + ] + } + }, }).trumbowyg('html', $noticeInput.val()); }