Re: Tool bar Button "Paste from Word" opens Dialog. Possible without CTRL + V?

  •  10-14-2013, 1:47 PM

    Re: Tool bar Button "Paste from Word" opens Dialog. Possible without CTRL + V?

    Hi miller399,

     

    All Rich TextEditor paste funtions will use the dialog now. If you do not like to use dialog, then you can ctach the paste word button command and achieve your own paste function. Like the code below. It will catch the paste word button command, what you need to do just achieve your own paste function in it.

     

    1. <script type="text/javascript">  
    2.     function RichTextEditor_OnExecUICommand(editor, arg) {  
    3.         var a0 = arg.Arguments[1];  
    4.         if (a0 == "PasteWord")  
    5.         {  
    6.             //achieve your own paste function  
    7.             //editor.ExecCommand("Paste");  
    8.             return false//reture false to cancel the button command  
    9.         }  
    10.     }  
    11. </script>  
     

    Regards,

     

    Ken 

View Complete Thread