title: Wrapping content in custom tags in Javascript and WYSIWYG
body: <p>So just a basic HTML editor for use in a website where I can select any text/elements, click a button and it will wrap the said selection in my custom defined tags. The contents of the editor should also store its value in a text field in the background so it can be submitted to the server.</p>
  
  <p>I need to wrap some content in <code>&lt;description&gt;&lt;/description&gt;</code> tags as the HTML parser on the server side will pull only that content out for presenting in search results. I can't seem to find any editor that will have this function out of the box to speak or allow to create a simple extension to place button and action for it.</p>
  
  <p>Also any editor that can act a word processor is a bonus. I don't have much experience with them, but it's kind of annoying that when you press enter it just replicates whatever the above tag before it was, this leaves me with just putting <code>&lt;/br&gt;</code> on the first line so all line breaks are single line and not more as the case with paragraphs.</p>