묻고답하기
에디터 본문기능만 삭제하려고 합니다.
2017.02.09 15:49
CK에디터 사용중입니다.
<!-- 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-->
<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);
</script>
어디를 수정해야지 파일첨부기능만 남게될까요? 어떻게 해야하나 고민해보다 질문드립니다.
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
dnjswn**** | Xpress engine사용 관련. | |
살려줘용 | 검색 관련 질문있습니다. [2] | 2017.02.10 by 살려줘용 |
haupt | [질문] XE 로그인 과정/자동 로그인 방법 이 궁급합니다. [2] | 2017.02.10 by haupt |
난다여~ | 1.8.20 이상 url:포트 설정시 포트 빠지는 문제 [2] | 2017.02.10 by 난다여~ |
살려줘용 | 확장변수 입력못하게 막기 질문 [5] | 2017.02.10 by 살려줘용 |
파도. | 스케치북 최근게시물 상단 탭 오른쪽 여백 없애기 | |
f**** | 회원가입 후 가입환영메일 발송 | |
정예 | 메인의 레이아웃을 조금 수정한 뒤로 모바일에서 문제가 생겼습니다 [1] | 2017.02.10 by 정예 |
ds376 | 에디터 컴포넌트 리스트 이미지갤러리를 가로로 나오게하기 | |
redclip | Simplestrap 메뉴 수정 문제 | |
진독 | 관리자페이지 문제 도움주실분을 찾습니다 [1] | 2017.02.10 by sejin7940 |
redclip | 지도 에디터 컴포넌트 마크 문제 | |
킼킼킼 | 헤더 상단의 배너부분 [2] | 2017.02.09 by 킼킼킼 |
lark007 | 황당한 frameset 질문입니다^^;; [1] | 2017.02.09 by XE카오스 |
공대생 | 에디터 본문기능만 삭제하려고 합니다. [1] | 2017.02.09 by YJSoft |
JackPARK | Xenon 모바일 화면상에 게시판(Board)의 내용 Update 및 수정 메뉴 추가건 | |
jaba | 기본 url 설정만 하면 xe를 재설치 하라고 합니다. [1] | 2017.02.09 by 펭구 |
robert | 게시판 관리만 있지 수정은 없나요? [3] | 2017.02.09 by 난다여~ |
fai**** | 초보입니다. 질문드립니다. [6] | 2017.02.08 by fai**** |
팀파워o권대훈 | 홈페이지 초기화하려고 합니다 [1] | 2017.02.08 by 제이와이엔소프트 |
https://www.xpressengine.com/index.php?mid=download&package_id=22753566
파일만 업로드하도록 하시려면 위 에디터를 이용해보세요