function webEditor_dhtmlEdit(excute,values) { dhtml.focus(); targetText = dhtml.document.selection.createRange(); if(values==null){ targetText.execCommand(excute); }else{ targetText.execCommand(excute,"",values); } } function webEditor_setForeColor() { //SHOW MODALDIALOG WIDOW; var color = showModalDialog("/momboard/modules/webeditor_colorchart.php",0,"dialogHeight=350px;dialogWidth=350px; scrollbars=no; status=0; help=0"); //CHANGE FONT COLOR if(color!=null){ dhtml.document.execCommand('ForeColor','',color); } dhtml.focus(); } function webEditor_createLink() { dhtml.focus(); targetText = dhtml.document.selection.createRange(); targetText.execCommand('CreateLink',1,''); } function SelectionCommand() { dhtml.focus(); targetText = dhtml.document.selection.createRange(); targetText.execCommand('CreateLink',1,''); if(targetText.parentElement().tagName=='A') { var href=targetText.parentElement().href; var data=targetText.text; targetText.execCommand('UnLink'); targetText.pasteHTML(""+data+""); } } function webEditor_changeMode(mode) { if(mode=='html') { document.bbs.main.value=dhtml.document.body.innerHTML; div_textarea.style.display=''; div_dhtml.style.display='none'; document.bbs.webeditor.value='no'; }else{ dhtml.document.body.innerHTML=document.bbs.main.value; div_dhtml.style.display=''; div_textarea.style.display='none'; document.bbs.webeditor.value='yes'; } } function webEditor_optimizing() { //CHECK CHAR if(dhtml.document.body.innerHTML=='') { alert('³»¿ëÀ» ÀÔ·ÂÇØÁֽʽÿä.'); return false; } //CHANGE LINK TARGET INTO _NEW for(var i=0;i