title: Insert text before and after the selection in a textarea with JavaScript
body: <p>How can I insert text before and after the selection in a <em><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea" rel="nofollow noreferrer">textarea</a></em> with JavaScript?</p>
  <p>Selection occurs into a <em>textarea</em> field of an HTML form.</p>