O.P. RE: Help with a menu selection
It's this part here
function OnEvent_MenuClicked(MenuItemId,Location,OriginWnd)
{
var currenttext = OriginWnd.EditText;
switch(MenuItemId)
{
case "PHP":
OriginWnd.EditText_SetCurSel (currenttext.substr(0,1), currenttext.substr(currenttext.length,1));
OriginWnd.EditText_ReplaceSel ("[ code=php] [/code ]");
break;
}
}
it seems to not want to do anything..
|