var config = new Object(); // create new config object config.width = "100%"; config.height = "200px"; config.bodyStyle = 'background-color: #FFFFFF; font-family: "±¼¸²"; font-size: 10pt; line-height:150%;margin: 10 10 10 10 '; config.debug = 0; config.toolbar = [ ['fontname'], ['fontsize'], ['bold','italic','underline','separator'], ['justifyleft','justifycenter','justifyright','separator'], ['OrderedList','UnOrderedList','Outdent','Indent','separator'], ['forecolor','backcolor','separator'], ['HorizontalRule','Createlink','InsertImage','InsertTable','htmlmode'], ]; config.fontnames = { "±¼¸²": "±¼¸², ±¼¸²Ã¼", "µ¸¿ò": "µ¸¿ò, µ¸¿òü", "¹ÙÅÁ": "¹ÙÅÁ, ¹ÙÅÁü", "±Ã¼": "±Ã¼, ±Ã¼Ã¼" }; config.fontsizes = { "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7" }; config.fontstyles = [ // make sure classNames are defined in the page the content is being display as well in or they won't work! { name: "headline", className: "headline", classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" }, { name: "arial red", className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" }, { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" } ]; //editor_generate('i_contents',config,'#F7F7F7'); var oEditors = []; // Ãß°¡ ±Û²Ã ¸ñ·Ï //var aAdditionalFontSet = [["MS UI Gothic", "MS UI Gothic"], ["Comic Sans MS", "Comic Sans MS"],["TEST","TEST"]]; nhn.husky.EZCreator.createInIFrame({ oAppRef: oEditors, elPlaceHolder: "ir1", sSkinURI: "../naver_editor/SmartEditor2Skin.html", htParams : { bUseToolbar : true, // Åø¹Ù »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½) bUseVerticalResizer : true, // ÀÔ·Ââ Å©±â Á¶Àý¹Ù »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½) bUseModeChanger : true, // ¸ðµå ÅÇ(Editor | HTML | TEXT) »ç¿ë ¿©ºÎ (true:»ç¿ë/ false:»ç¿ëÇÏÁö ¾ÊÀ½) //aAdditionalFontList : aAdditionalFontSet, // Ãß°¡ ±Û²Ã ¸ñ·Ï fOnBeforeUnload : function(){ //alert("¿Ï·á!"); } }, //boolean fOnAppLoad : function(){ //¿¹Á¦ ÄÚµå //oEditors.getById["ir1"].exec("PASTE_HTML", [""]); }, fCreator: "createSEditor2" }); function pasteHTML() { var sHTML = "À̹ÌÁöµµ °°Àº ¹æ½ÄÀ¸·Î »ðÀÔÇÕ´Ï´Ù.<\/span>"; oEditors.getById["ir1"].exec("PASTE_HTML", [sHTML]); } function showHTML() { var sHTML = oEditors.getById["ir1"].getIR(); alert(sHTML); } function submitContents(elClickedObj) { oEditors.getById["ir1"].exec("UPDATE_CONTENTS_FIELD", []); // ¿¡µðÅÍÀÇ ³»¿ëÀÌ textarea¿¡ Àû¿ëµË´Ï´Ù. // ¿¡µðÅÍÀÇ ³»¿ë¿¡ ´ëÇÑ °ª °ËÁõÀº ÀÌ°÷¿¡¼ document.getElementById("ir1").value¸¦ ÀÌ¿ëÇؼ ó¸®ÇÏ¸é µË´Ï´Ù. try { elClickedObj.form.submit(); } catch(e) {} } function setDefaultFont() { var sDefaultFont = '±Ã¼'; var nFontSize = 24; oEditors.getById["ir1"].setDefaultFont(sDefaultFont, nFontSize); }