¾È±Ô °øºÎ¹æ

ACTIVE SERVER PAGE > ckeditor - config.js ¼³Á¤¿É¼Çµé

µî·ÏÀÏ : 2017-07-04 17:25 Á¶È¸¼ö : 53,631

ckeditorÀÇ È¯°æ¼³Á¤ ÆÄÀÏÀº editor Æú´õÀÇ config.js ÆÄÀÏÀÌ Á¸ÀçÇÑ´Ù. 
ÀÌ ÆÄÀÏ¿¡¼­ ȯ°æ¼³Á¤À» ÇÒ ¼ö ÀÖ´Ù.

¶Ç´Â editor °¡ Ç¥½ÃµÇ´Â È­ÀÏ¿¡¼­ ½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇؼ­ JsonÇüÅ·Πȯ°æ¼³Á¤À» ÇÒ ¼öµµ ÀÖ´Ù.
 

/* Editor ¿¡¼­ »ç¿ëµÇ´Â ±âº»ÀûÀ¸·Î Á¦°øÇÏ´Â Åø¹ÙÀÇ ¹öÆ° - ´Ü¾î´Ü¾î¸¶´Ù ù±ÛÀÚ´Â ´ë¹®ÀÚ */

config.toolbar = [
['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'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],'/',
['Styles','Format','Font','FontSize'],['TextColor','BGColor'],['Maximize', 'ShowBlocks','-','About']];

config.language = 'ko'; //¾ð¾î¼³Á¤
config.uiColor = '#EEEEEE'; //ui »ö»ó
config.height = '300px'; //Editor ³ôÀÌ 
config.width = '777px'; //Editor ³ÐÀÌ
config.contentsCss = ['/css/style.css'],['/css/main.css']; //ȨÆäÀÌÁö¿¡¼­ »ç¿ëÇÏ´Â Css ÆÄÀÏ ÀÎŬ·çµå
config.font_defaultLabel = 'Gulim';
config.font_names='Gulim/Gulim;Dotum/Dotum;Batang/Batang;Gungsuh/Gungsuh/Arial/Arial;Tahoma/Tahoma;Verdana/Verdana';
config.fontSize_defaultLabel = '12px';
config.fontSize_sizes='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;';
config.enterMode =CKEDITOR.ENTER_BR; //¿£ÅÍÅ° ÀԷ½à br ÅÂ±× º¯°æ
config.shiftEnterMode = CKEDITOR.ENTER_P; //¿£ÅÍÅ° ÀԷ½à p ű׷Πº¯°æ
config.startupFocus = true; // ½ÃÀ۽à Æ÷Ä¿½º ¼³Á¤
config.allowedContent = true; // ±âº»ÀûÀÎ htmlÀÌ ÇÊÅ͸µÀ¸·Î Áö¿öÁö´Âµ¥ ÇÊÅ͸µÀ» ÇÏÁö ¾Ê´Â´Ù.
config.filebrowserImageUploadUrl = '/include/editor/upload/upload.asp'; //À̹ÌÁö ¾÷·Îµå °æ·Î (¼³Á¤ÇÏ¸é ¾÷·Îµå Ç÷¯±×Àο¡ ÅÇÀÌ»ý±è)
config.filebrowserFlashUploadUrl = '/include/editor/upload/upload.asp; //Ç÷¡½¬ ¾÷·Îµå °æ·Î (¼³Á¤ÇÏ¸é ¾÷·Îµå Ç÷¯±×Àο¡ ÅÇÀÌ»ý±è)
config.toolbarCanCollapse = true; //Åø¹Ù°¡ Á¢È÷´Â ±â´ÉÀ» ³ÖÀ»¶§ »ç¿ëÇÕ´Ï´Ù.
config.docType = "<!DOCTYPE html>"; //¹®¼­Å¸ÀÔ ¼³Á¤

config.extraAllowedContent = 'video[*]{*};source[*]{*}'; //video , embed µî ¸·Èù ű׸¦ Çã¿ëÇÏ°Ô ÇÏ´Â ¼³Á¤



À§ ¼³Á¤Àº Äݹé ÆÄÀÏ¿¡¼­ ÃÖÁ¾À¸·Î ³Ñ°Ü¾ßÇÏ´Â ÀÎÀÚ°¡ ÀÖ½À´Ï´Ù.

ù¹ø° Àμö : ³Ñ¾î¿À´Â °ª ±×´ë·Î ¸®ÅÏ
µÎ¹ø° Àμö : º¸¿©Áú À̹ÌÁö ÁÖ¼Ò
¼¼¹ø° Àμö : ¿Ï·á alert ¹®±¸

window.parent.CKEDITOR.tools.callFunction(, '','¾÷·Îµå ¿Ï·á ');

ÀÌ·¸°Ô ó¸®ÇØ Áà¾ß ÇÕ´Ï´Ù.

//°³º°¼³Á¤Àº editor ÆäÀÌÁö¿¡¼­ ¾Æ·¡Ã³·³ JSON 󸮹æ½ÄÀ¸·Î ÀÔ·ÂÇÏ¸é µË´Ï´Ù.
 

	CKEDITOR.replace( 'board_contents', {
	width :'777px',	
	allowedContent:true,
	toolbar :[['NewPage','Preview','Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','-',
	'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','Outdent','Indent','HorizontalRule','Link','Unlink','-',
	'Find','Replace','SelectAll','Image','Flash','Table','SpecialChar'],
	'/',['Styles','Format','Font','FontSize','Undo','Redo'],['TextColor','BGColor'],['Cut','Copy','Paste','PasteText'],['Source']],
	filebrowserImageUploadUrl: '/include/editor/upload/upload.asp',
	filebrowserFlashUploadUrl: '/include/editor/upload/upload.asp>'
	});




³»¿ëÀÇ °ªÀ» °¡Á®¿Ã°æ¿ì´Â getDate() ·Î °¡Á®¿À½Ã¸é µË´Ï´Ù.

CKEDITOR.instances.board_contents.getData();

±âŸ »ç¿ë¹æ¹ýÀº http://docs.cksource.com/ckeditor_api/ À» ÅëÇØ Ã£¾Æº¸½Ç ¼ö ÀÖ½À´Ï´ç~
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.