Re: how can i add a shortcut key to the editor to submit?

  •  03-16-2009, 11:00 AM

    Re: how can i add a shortcut key to the editor to submit?

    Hi,
     
    You can catch the key event this way:
     
    var editor1=document.getElementById("<%=Editor1.ClientID%>");
    if(editor1.IsReady)CuteEditor_OnInitialized(editor);
    function CuteEditor_OnInitialized(editor)
    {
     editor1.HookEvent(editor1.GetDocument(),"keydown",function(e)
     {
      var e=e||editor1.GetWindow().event;
      //alert(e.keyCode);
     });
    }
     
    Regards,
    Terry
     
View Complete Thread