반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | <!-- css --> < load target = "css/default.css" /> < load target = "../../../../common/xeicon/xeicon.min.css" /> <!-- JS --> <!--%load_js_plugin("ckeditor")--> < load target = "../../tpl/js/editor_common.js" /> < load target = "../../tpl/js/editor.app.js" /> < load target = "js/xe_interface.js" /> {@ $css_content = null } <!--@if($content_font || $content_font_size)--> <!--@if($content_style === 'ckeditor_light')--> {@ $css_content = '.xe_content.editable p { margin: 0;'. chr(125); } <!--@endif--> {@ $css_content .= ' .xe_content.editable { '} < block cond = "$content_font" > {@ $css_content .= 'font-family:' . $content_font . ';';} </ block > < block cond = "$content_font_size" > {@ $css_content .= 'font-size:' . $content_font_size . ';';} </ block > {@ $css_content .= chr(125);} <!--@endif--> {@ $do_mid=array('support','qna'); } <!--@if(!$document_srl && in_array($mid,$do_mid) && $act=="dispBoardWrite")--> < div id = "ckeditor_instance_overlay" onclick = "overlay_out(this)" style = "min-height:{$editor_height}px;" > < div class = "ov_content" > 기술 지원 문의일 경우 아래를 확인해 주세요. 1.내용< br > 2.내용 3.가능하다면 발생되는 문제점을 확인할 수 있도록 URL을 남겨 주세요. *작성 하신 글의 제목은 질문 내용에 맞도록 관리자가 임의 수정할 수 있습니다. *클릭 하시면 글을 작성 하실수 있습니다. </ div > </ div > <!--@end--> < div id = "ckeditor_instance_{$editor_sequence}" data-editor-sequence = "{$editor_sequence}" data-editor-primary-key-name = "{$editor_primary_key_name}" data-editor-content-key-name = "{$editor_content_key_name}" style = "min-height:{$editor_height}px;" ></ div > < block cond = "$allow_fileupload" > < include target = "file_upload.html" /> </ block > < script > (function($){ "use strict"; // editor $(function(){ <!--@if(!FileHandler::exists('common/js/plugins/ckeditor/ckeditor/config.js'))--> CKEDITOR.config.customConfig = ''; <!--@endif--> var settings = { ckeconfig: { height: '{$editor_height}', skin: '{$colorset}', contentsCss: '{$content_style_path}/editor.css', xe_editor_sequence: {$editor_sequence}, toolbarCanCollapse: true, language: "{str_replace('jp','ja',$lang_type)}" }, loadXeComponent: true, enableToolbar: true, content_field: jQuery('[name={$editor_content_key_name}]') }; <!--@if($enable_component)--> {@ $xe_component = array(); } <!--@foreach($component_list as $component_name => $component)--> {@ $xe_component[] = $component_name . ":'" . htmlentities($component->title, ENT_QUOTES, 'UTF-8') . "'"; } <!--@endforeach--> {@ $xe_component = implode(',', $xe_component); } settings.ckeconfig.xe_component_arrays = {{$xe_component}}; <!--@endif--> <!--@if(!$enable_default_component)--> settings.enableToolbar = false; settings.ckeconfig.toolbarCanCollapse = false; <!--@endif--> <!--@if(!$enable_component)--> settings.loadXeComponent = false; <!--@endif--> <!--@if($module_type === 'comment'||Mobile::isMobileCheckByAgent())--> settings.ckeconfig.toolbarStartupExpanded = false; <!--@endif--> <!--@if(!$html_mode)--> settings.ckeconfig.removeButtons = 'Save,Preview,Print,Cut,Copy,Paste,Source'; <!--@endif--> <!--@if($css_content)--> CKEDITOR.addCss('{$css_content}'); <!--@end--> var ckeApp = $('#ckeditor_instance_{$editor_sequence}').XeCkEditor(settings); jQuery("#ckeditor_instance_overlay").css("width",jQuery("#ckeditor_instance_{$editor_sequence}").css("width")); //추가 됨 }); })(jQuery); function overlay_out(obj){ //추가됨 jQuery(obj).fadeOut(1000); CKEDITOR.instances.editor1.focus(); } </ script > |
추가된 소스
25~52 라인
111 라인
116~119 라인
26 라인 - $do_mid=array('support','qna'); <- 작동할 mid 지정입니다.
css 추가
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #ckeditor_instance_overlay{ cursor : pointer ; position : absolute ; top : 164px ; z-index : 99999 ; } #ckeditor_instance_overlay .ov_content{ padding : 10px 0 0 10px ; color : black ; font-size : 14px ; font-weight : 400 ; cursor : pointer ; } |
{@
$do_mid=array('support','qna');
}
이부분에 mid 값을 적어주면 해당 게시판에서만 작동한다.
반응형