<div class="wrap">
  <p>會上他表格在會過心設異不。充言交才各難;發車的!比我更怕它教時只發便的不式:是看了事,首法可成十裝客的會情容。</p>
  <textarea ></textarea>
</div>

  

textarea {
  width: 200px;
  height: 200px;
}
console.clear();

document.addEventListener('copy', function(event) {
  const text = window.getSelection().toString();
  if (text.length > 15) {
    event.preventDefault();
    event.clipboardData.setData('text/plain', '來源:竹白記事本\n' + text);
  }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.