기본은 <p>가나다</p>
 
force_br_newlines : true
 
설정하면
엔터가 <br>로 바뀜.
 
 
 
 
 
$(document).ready(function() {
  $('textarea.tinymce').tinymce({
   // Location of TinyMCE script
   script_url : CONTEXTPATH+'/common/tiny_mce/tiny_mce.js',
   // General options
   theme : "advanced",   
//   theme : "simple",   
   //IE에서 한글입력 문제 해결을 위해
   forced_root_block : false,
   //plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
   plugins : "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",   
   // Theme options
//   theme_advanced_buttons1 : "bold,italic,underline, strikethrough, separator,justifyleft, justifycenter,justifyright,  justifyfull, separator,help",
//   이건 심플용 샘플
   
   //formatselect,,|,cut,copy,paste,pastetext,pasteword
   
   theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,search,replace,|,print,fullscreen",
   theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,|,hr,removeformat,|,sub,sup,|,charmap,emotions,media,",
   theme_advanced_buttons3 : "tablecontrols",
   
   theme_advanced_fonts : "굴림=굴림;굴림체=굴림체;궁서=궁서;궁서체=궁서체;돋움=돋움;돋움체=돋움체;바탕=바탕;바탕체=바탕체;Arial=Arial; Comic Sans MS='Comic Sans MS';Courier New='Courier New';Tahoma=Tahoma;Times New Roman='Times New Roman';Verdana=Verdana",
   
   theme_advanced_toolbar_location : "top",
   theme_advanced_toolbar_align : "left",
   theme_advanced_statusbar_location : "bottom",
   theme_advanced_resizing : true,
   theme_advanced_path : false,
   // Example content CSS (should be your site CSS)
   //content_css : "css/content.css",   
   content_css : CONTEXTPATH+'/common/css/backend.css',
   // Drop lists for link/image/media/template dialogs
   template_external_list_url : "lists/template_list.js",
   external_link_list_url : "lists/link_list.js",
   external_image_list_url : "lists/image_list.js",
   media_external_list_url : "lists/media_list.js",
   force_br_newlines : true,
   
   // Replace values for the template plugin
   template_replace_values : {
    username : "Some User",
    staffid : "991234"
   }
  });
});
Posted by [czar]
,