ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/js/ckeditor_v4.9/ |
Upload File : |
/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; // 기본 언어 config.defaultLanguage = 'ko'; // 인터페이스 로드 언어 config.language = 'ko'; // 엔터키 모드 // CKEDITOR.ENTER_P (1): new <p> paragraphs are created; // CKEDITOR.ENTER_BR (2): lines are broken with <br> elements; // CKEDITOR.ENTER_DIV (3): new <div> blocks are created. config.enterMode = CKEDITOR.ENTER_BR; // 쉬프트+엔터키 모드 // CKEDITOR.ENTER_P (1): new <p> paragraphs are created; // CKEDITOR.ENTER_BR (2): lines are broken with <br> elements; // CKEDITOR.ENTER_DIV (3): new <div> blocks are created. config.shiftEnterMode = CKEDITOR.ENTER_P; // 기본 글꼴 config.font_defaultLabel = '굴림'; config.toolbarCanCollapse = true; config.toolbarStartupExpanded = true; // 플러그인 config.extraPlugins = 'upimgs,lineheight'; config.extraPlugins_Click = 'upimgs,lineheight'; // 스킨 //config.skin="moono-lisa"; // 글꼴 설정 config.font_names = '굴림;돋움;바탕;궁서;' + config.font_names; // 툴바 설정 config.toolbar = 'Click'; config.toolbar_Basic = [ ['Font','FontSize','-','Bold','Italic','Underline','Strike','-','TextColor','BGColor','-','NumberedList','BulletedList','-','Link','Unlink'] ]; // 툴바(Full) 설정 config.toolbar_Full = [ ['Source','-','Save','NewPage','Preview','-','Templates'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['BidiLtr', 'BidiRtl'], ['Link','Unlink','Anchor'], ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks','-','About'] ]; // 툴바(Click) 설정 (추가) config.toolbar_Click = [ ['Font','FontSize','lineheight'], ['Bold','Italic','Underline','Strike','-', 'TextColor','BGColor','-', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], '/', ['Maximize','ShowBlocks','NumberedList','BulletedList','-', 'Outdent','Indent','-', 'Link','Unlink','Anchor','-', 'Image','Heart'], ['Table','HorizontalRule','Smiley','SpecialChar','PageBreak','-', 'Find','Replace','-', 'Preview','Source','NewPage','PasteFromWord','Print'] ]; // 줄높이 config.line_height="150%;180%;200%;220%;250%;280%;300%" ; // 하위메뉴 지연 (0:제거) config.menu_subMenuDelay = 0; // 에디터 리사이즈 config.resize_enabled = false; //붙여넣기에 태그 삭제기능 제거 config.pasteFromWordRemoveFontStyles = false; config.pasteFromWordRemoveStyles = false; config.allowedContent = true; config.forcePasteAsPlainText = false; // empty tag 허용 config.protectedSource.push(/<a[^>]*><\/a>/g); // a tag config.protectedSource.push(/<div[^>]*><\/div>/g); config.protectedSource.push(/<span[^>]*><\/span>/g); config.protectedSource.push(/<i[^>]*><\/i>/g); config.removeDialogTabs = 'image:Link;image:advanced;'; config.removePlugins = 'flash,iframe,uicolor,specialchar,blockquote,div,templates,smiley,bidi'; //config.removeButtons = 'Underline,Subscript, Superscript,Styles'; config.filebrowserImageUploadUrl = '/js/ckeditor_upload.html'; CKEDITOR.on( 'dialogDefinition', function( ev ){ // Take the dialog name and its definition from the event data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested in (the 'image' dialog). This dialog name found using DevTools plugin if ( dialogName == 'image' ){ // Remove the 'Link' and 'Advanced' tabs from the 'Image' dialog. dialogDefinition.removeContents( 'Link' ); //링크 탭 제거 dialogDefinition.removeContents( 'advanced' ); //상세정보 탭 제거 // Get a reference to the 'Image Info' tab. var infoTab = dialogDefinition.getContents( 'info' ); //info탭을 제거하면 이미지 업로드가 안된다. // Remove unnecessary widgets/elements from the 'Image Info' tab. infoTab.remove( 'txtHSpace'); infoTab.remove( 'txtVSpace'); infoTab.remove( 'txtBorder'); //infoTab.remove( 'txtWidth'); //infoTab.remove( 'txtHeight'); infoTab.remove( 'ratioLock'); } }); /*CKEDITOR.on('dialogDefinition', function(ev) { // Take the dialog name and its definition from the event data var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; var editor = ev.editor; if (dialogName == 'image') { dialogDefinition.onOk = function(e) { console.log(e.sender.originalElement); var imageSrcUrl = e.sender.originalElement.$.src; var imgHtml = CKEDITOR.dom.element.createFromHtml("<img src=" + imageSrcUrl + " alt='' align='right'/>"); editor.insertElement(imgHtml); }; } }); CKEDITOR.on( 'dialogDefinition', function( ev ){ // Take the dialog name and its definition from the event data. var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; // Check if the definition is from the dialog we're // interested in (the 'image' dialog). This dialog name found using DevTools plugin if ( dialogName == 'youtube' ){ var infoTab = dialogDefinition.getContents('youtubePlugin'); infoTab.remove('txtWidth'); infoTab.remove('txtHeight'); infoTab.remove('txtUrl'); } });*/ };