title: javascript how to paste "as plain text" in multiple fields or elements
body: <p>I try to paste text into multiple fields, but the formatting is only cleared on the first element, not the second etc.</p>
  
  <p>I found this question <a href="https://stackoverflow.com/a/12028136/3955607">https://stackoverflow.com/a/12028136/3955607</a> which works fine, but again, on multiple elements it doesnt work.</p>
  
  <p>So I got this HTML</p>
  
  <pre><code>&lt;div style="color:red"&gt;Some &lt;em&gt;rich&lt;/em&gt; &lt;span style="font-size:2em"&gt;HTML&lt;/span&gt;&lt;/div&gt;
  &lt;br /&gt;
  &lt;div style="border:1px solid red" contenteditable&gt;&lt;/div&gt;
  &lt;br /&gt;
  &lt;div style="border:1px solid red" contenteditable&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and this javascript:</p>
  
  <pre><code>document.querySelector("div[contenteditable]").addEventListener("paste", function(e) {
     e.preventDefault();
     var text = e.clipboardData.getData("text/plain");
     document.execCommand("insertHTML", false, text);
  });
  </code></pre>
  
  <p>I have this fiddle <a href="http://jsfiddle.net/tdjuc8es/" rel="nofollow noreferrer">http://jsfiddle.net/tdjuc8es/</a></p>
  
  <p>just copy and paste the <code>Some rich HTML</code>- text and see what happens</p>
  
  <p>Someone who can help me out?</p>