Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

disable/deactivate hotkeys

Last post 10-08-2014, 8:52 AM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  10-01-2014, 11:24 AM 80433

    disable/deactivate hotkeys

    We do not want to allow certain formatting i.e. "italic" or "underline"; so we disable the relevant toolbar buttons and the items in the context menu, but when the user uses the hotkeys (ctrl + i or ctrl + u), these formattings get executed?!

    How is it possible to disable the hotkeys of those commands?

     

    Best regards,

    Markus

  •  10-08-2014, 8:51 AM 80437 in reply to 80433

    Re: disable/deactivate hotkeys

    Hi mbcs,

     

    You can use the code below to disable the italic and underline function.  You can find other command name at http://cutesoft.net/developer+guide/scr/Toolbar_Customization.htm

     

    1. <script type="text/javascript">  
    2. function CuteEditor_OnCommand(editor,command,ui,value)  
    3.  {  
    4.     if(command=="Italic"||command=="Underline")  
    5.     {  
    6.         return true;  
    7.     }  
    8. }  
    9. </script>  
     

    Regards,

     

    Ken 

  •  10-08-2014, 8:52 AM 80438 in reply to 80433

    Re: disable/deactivate hotkeys

    ...

View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.