Param |
Method |
Event |
|
|
CE_OnCustomMenuv1.6 higherAddMenu로 추가된 Custom 메뉴가 선택되었을 때 발생하는 이벤트입니다. 발생한 이벤트 type이 custommenu_plugin일 경우 return 값으로 사용자가 생성한 플러그인 객체를 넘겨주어야 에디터와 연동됩니다.
Parameters이벤트 발생 시 아래와 같은 객체를 반환합니다.
Sample Codes[ Plugin ] <div id="CustomLayer" style="position:absolute; display:none;z-index:1;"> <table border="1px" bgcolor="white"> <tr> <td>크로스에디터 Custom 메뉴 플러그 인 입니다.</td> </tr> </table> </div>
function CE_OnCustomMenu(e){
if (!e) return;
if (e.type == 'custommenu_plugin' && e.customMenuID == 'userMenu'){
//레이어가 위치 할 포지션 지정
document.getElementById(CustomLayer).style.top=e.customMenuY;
document.getElementById(CustomLayer).style.left=e.customMenuX;
document.getElementById("CustomLayer").style.display = "";
return document.getElementById("CustomLayer");
}
}
[ Function ] function CE_OnCustomMenu(e){ if (!e) return; if (e.type=='custommenu_function' && e.customMenuID == 'userMenu'){ //실행할 스크립트 구문 alert(“ID : ” + e.customMenuID + “\n” + “Type : ” + e.type); } }
See AlsoAddMenu UserToolbar CreateToolbar Chevron
|