MINI MINI MANI MO
function createSEditor2(elIRField, htParams, elSeAppContainer){
if(!window.$Jindo){
parent.document.body.innerHTML="Áøµµ ÇÁ·¹ÀÓ¿÷ÀÌ ÇÊ¿äÇÕ´Ï´Ù.<br>\n<a href='http://dev.naver.com/projects/jindo/download'>http://dev.naver.com/projects/jindo/download</a>¿¡¼ Jindo 1.5.3 ¹öÀüÀÇ jindo.min.js¸¦ ´Ù¿î·Îµå ¹Þ¾Æ /js Æú´õ¿¡ º¹»ç ÇØ ÁÖ¼¼¿ä.\n(¾ÆÁ÷ Jindo 2 ´Â Áö¿øÇÏÁö ¾Ê½À´Ï´Ù.)";
return;
}
var elAppContainer = (elSeAppContainer || jindo.$("smart_editor2"));
var elEditingArea = jindo.$$.getSingle("DIV.husky_seditor_editing_area_container", elAppContainer);
var oWYSIWYGIFrame = jindo.$$.getSingle("IFRAME.se2_input_wysiwyg", elEditingArea);
var oIRTextarea = elIRField?elIRField:jindo.$$.getSingle("TEXTAREA.blind", elEditingArea);
var oHTMLSrc = jindo.$$.getSingle("TEXTAREA.se2_input_htmlsrc", elEditingArea);
var oTextArea = jindo.$$.getSingle("TEXTAREA.se2_input_text", elEditingArea);
if(!htParams){
htParams = {};
htParams.fOnBeforeUnload = null;
}
htParams.elAppContainer = elAppContainer; // ¿¡µðÅÍ UI ÃÖ»óÀ§ element ¼ÂÆÃ
htParams.oNavigator = jindo.$Agent().navigator(); // navigator °´Ã¼ ¼ÂÆÃ
var oEditor = new nhn.husky.HuskyCore(htParams);
oEditor.registerPlugin(new nhn.husky.CorePlugin(htParams?htParams.fOnAppLoad:null));
oEditor.registerPlugin(new nhn.husky.StringConverterManager());
var htDimension = {
nMinHeight:205,
nMinWidth:parseInt(elIRField.style.minWidth, 10)||570,
nHeight:elIRField.style.height||elIRField.offsetHeight,
nWidth:elIRField.style.width||elIRField.offsetWidth
};
oEditor.registerPlugin(new nhn.husky.SE_EditingAreaManager("WYSIWYG", oIRTextarea, htDimension, htParams.fOnBeforeUnload, elAppContainer));
oEditor.registerPlugin(new nhn.husky.SE_EditingArea_WYSIWYG(oWYSIWYGIFrame)); // Tab Editor ¸ðµå
oEditor.registerPlugin(new nhn.husky.SE_EditingArea_HTMLSrc(oHTMLSrc)); // Tab HTML ¸ðµå
oEditor.registerPlugin(new nhn.husky.SE_EditingArea_TEXT(oTextArea)); // Tab Text ¸ðµå
oEditor.registerPlugin(new nhn.husky.SE2M_EditingModeChanger(elAppContainer)); // ¸ðµå°£ º¯°æ(Editor, HTML, Text)
oEditor.registerPlugin(new nhn.husky.HuskyRangeManager(oWYSIWYGIFrame));
oEditor.registerPlugin(new nhn.husky.Utils());
oEditor.registerPlugin(new nhn.husky.SE2M_UtilPlugin());
oEditor.registerPlugin(new nhn.husky.SE_WYSIWYGStyler());
oEditor.registerPlugin(new nhn.husky.SE2M_Toolbar(elAppContainer));
oEditor.registerPlugin(new nhn.husky.Hotkey()); // ´ÜÃàŰ
oEditor.registerPlugin(new nhn.husky.SE_EditingAreaVerticalResizer(elAppContainer)); // ÆíÁý¿µ¿ª ¸®»çÀÌÁî
oEditor.registerPlugin(new nhn.husky.DialogLayerManager());
oEditor.registerPlugin(new nhn.husky.ActiveLayerManager());
oEditor.registerPlugin(new nhn.husky.SE_WYSIWYGStyleGetter()); // Ä¿¼ À§Ä¡ ½ºÅ¸ÀÏ Á¤º¸ °¡Á®¿À±â
oEditor.registerPlugin(new nhn.husky.SE2B_Customize_ToolBar(elAppContainer)); // »ó´Ü Åø¹Ù (Basic)
oEditor.registerPlugin(new nhn.husky.SE_WYSIWYGEnterKey("P")); // ¿£ÅÍ ½Ã ó¸®, ÇöÀç´Â P·Î ó¸®
oEditor.registerPlugin(new nhn.husky.SE2M_ColorPalette(elAppContainer)); // »ö»ó ÆÈ·¹Æ®
oEditor.registerPlugin(new nhn.husky.SE2M_FontColor(elAppContainer)); // ±ÛÀÚ»ö
oEditor.registerPlugin(new nhn.husky.SE2M_BGColor(elAppContainer)); // ±ÛÀÚ¹è°æ»ö
oEditor.registerPlugin(new nhn.husky.SE2M_FontNameWithLayerUI(elAppContainer)); // ±Û²ÃÁ¾·ù
oEditor.registerPlugin(new nhn.husky.SE2M_FontSizeWithLayerUI(elAppContainer)); // ±Û²ÃÅ©±â
oEditor.registerPlugin(new nhn.husky.SE2M_LineStyler());
oEditor.registerPlugin(new nhn.husky.SE2M_ExecCommand(oWYSIWYGIFrame));
oEditor.registerPlugin(new nhn.husky.SE2M_LineHeightWithLayerUI(elAppContainer)); // ÁÙ°£°Ý
oEditor.registerPlugin(new nhn.husky.SE2M_Quote(elAppContainer)); // Àο뱸
oEditor.registerPlugin(new nhn.husky.SE2M_Hyperlink(elAppContainer)); // ¸µÅ©
oEditor.registerPlugin(new nhn.husky.SE2M_SCharacter(elAppContainer)); // Ư¼ö¹®ÀÚ
oEditor.registerPlugin(new nhn.husky.SE2M_FindReplacePlugin(elAppContainer)); // ã±â/¹Ù²Ù±â
oEditor.registerPlugin(new nhn.husky.SE2M_TableCreator(elAppContainer)); // Å×ÀÌºí »ý¼º
oEditor.registerPlugin(new nhn.husky.SE2M_TableEditor(elAppContainer)); // Å×ÀÌºí ÆíÁý
oEditor.registerPlugin(new nhn.husky.SE2M_TableBlockStyler(elAppContainer)); // Å×ÀÌºí ½ºÅ¸ÀÏ
oEditor.registerPlugin(new nhn.husky.SE2M_AttachQuickPhoto(elAppContainer)); // »çÁø
oEditor.registerPlugin(new nhn.husky.MessageManager(oMessageMap));
oEditor.registerPlugin(new nhn.husky.SE2M_QuickEditor_Common(elAppContainer)); // Äü¿¡µðÅÍ °øÅë(Ç¥, À̹ÌÁö)
if(jindo.$Agent().navigator().ie){
oEditor.registerPlugin(new nhn.husky.SE2M_ImgSizeRatioKeeper()); // À̹ÌÁö ¼±ÅÃÇÑ ÀÌÈÄ ¸¶¿ì½º·Î Å©±â Á¶Á¤Çϸé Á¤ºñÀ²·Î º¯°æ
}
oEditor.registerPlugin(new nhn.husky.SE2B_CSSLoader()); // CSS lazy load
oEditor.registerPlugin(new nhn.husky.SE_OuterIFrameControl(elAppContainer, 100));
oEditor.registerPlugin(new nhn.husky.SE_ToolbarToggler(elAppContainer, htParams.bUseToolbar));
return oEditor;
}
OHA YOOOO