0

Well, i've created a page with its own contextual menus, and now i'm implementing a text editor into it, but i cannot code the "Paste" button, Do you have a clue of how to force the "paste" event to happen?

enter image description here

context.attach('#app', [
            {text: 'Refresh', action: function(e){ location.reload(); }},
            {divider: true},
            {text: 'Copy', action: function(e){ document.execCommand('copy', false, null); }},
            {text: 'Cut', action: function(e){ document.execCommand('cut'); }},
            {text: 'Paste', action: function(e){ Event(paste); }},
        ]);
davco98
  • 31
  • 5
  • Possible duplicate of [JavaScript get clipboard data on paste event (Cross browser)](http://stackoverflow.com/questions/2176861/javascript-get-clipboard-data-on-paste-event-cross-browser) – baao Oct 31 '15 at 16:54
  • It's not a duplicate, read the article. – davco98 Oct 31 '15 at 16:56

0 Answers0