Paste Button brings up Past From Word input box

Last post 12-31-2012, 11:09 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  12-27-2012, 11:49 AM 75555

    Paste Button brings up Past From Word input box

    We are having a small issue with the paste button in our context menu.  When it is clicked, the Paste From Word dialog box comes up.  Paste From Word is also included in the context menu and displays the Paste From Word dialog box as it should.  However, Paste should not.  Additionally, when CTRL+V is pressed (hotkey), text pastes correctly (inserted directly into the text field without a dialog box).

     

    I checked the demo on the main site to ensure it wasn't a browser issue or something similar.  The demo works correctly.  It must be something in my customization, but I can't find exactly what it is.  Here is my context menu XML:

     

    <contextmenus>
        <ref name="Undo" />
        <ref name="Redo" />
        <spliter />
        <ref name="Cut" />
        <ref name="Copy" />
        <ref name="Paste" />
        <ref name="PasteWord" />
        <ref name="SelectAll" />
        <ref name="InsertImage" />
        <ref name="InsertHorizontalRule" />
        <ref name="InsertOrderedList" />
        <ref name="InsertUnorderedList" />      
        <define name="Undo" text="Undo" command="Undo" hotkey="CTRL+Z" />
        <define name="Redo" text="Redo" command="Redo" hotkey="CTRL+Y" />
        <define name="Cut" text="Cut" command="Cut" hotkey="CTRL+X" />
        <define name="Copy" text="Copy" command="Copy" hotkey="CTRL+C" />
        <define name="Paste" text="Paste" command="Paste" hotkey="CTRL+V" />
        <define name="PasteWord" text="PasteWord" command="PasteWord" />
        <define name="SelectAll" text="SelectAll" command="SelectAll" hotkey="CTRL+A" />
        <define name="InsertImage" command="InsertImage" text="InsertImage" image="eximage" />
        <define name="InsertHorizontalRule" command="InsertHorizontalRule" text="HorRule" image="rule" />
        <define name="InsertOrderedList" command="InsertOrderedList" text="OrderedList" image="-" />
        <define name="InsertUnorderedList" command="InsertUnorderedList" text="UnorderedList" image="-" />
    </contextmenus> 

     

    Any ideas what to check next? 

    Filed under: ,
  •  12-31-2012, 11:09 AM 75562 in reply to 75555

    Re: Paste Button brings up Past From Word input box

    Hi,

     

    It is the browser limitation,by default, firefox/chrome doesn't allow JavaScript to read or set your clipboard data for security and privacy reasons.  So we use the dialog  to paste the content when use context menu or the paste button.

     

    Regards,

     

    Ken 

View as RSS news feed in XML