title: How to trigger `paste` event manually in javascript?
body: <p>I have an event listener which listens on <code>ctrl - v</code> paste event. Inside the listener I use <code>clipboardData.getData</code> method to get the copied data from clipboard. But now I need to implement a button when users click on that button it does the copy logic. My question is how to trigger a paste event programmatically. The main thing I need to get is the <code>clipboardData</code> instance.</p>
  
  <p>Below code is my current <code>paste</code> event listener. I need to mock the <code>e</code> paste event in order to make the button work.</p>
  
  <pre><code>myDom.on('paste',function(e) {
      e.preventDefault();
      var data = (e.originalEvent || e).clipboardData.getData('application/image');
  
  });
  </code></pre>