title: Insert HTML before an element in CKEditor
body: <p>What is the best way to programmatically insert HTML (that represents a CKEditor widget) before an existing element in CKEditor?</p>
  
  <p>The content editable is not in focus and is not currently being edited.</p>
  
  <p>For example, suppose the contents of the editor are:</p>
  
  <pre><code>&lt;h1&gt;Here's a title&lt;/h1&gt;
  &lt;h2&gt;Here's a subtitle&lt;/h2&gt;
  &lt;p&gt;Here's a paragraph&lt;/p&gt;
  &lt;p&gt;Here's a paragraph&lt;/p&gt;
  &lt;p&gt;Here's a paragraph&lt;/p&gt;
  </code></pre>
  
  <p>Now, say I have a reference to the second <code>&lt;p&gt;</code> element. What is the best way to insert html before this tag? (Keeping in mind that the HTML that I want to insert will become a Ckeditor widget after inserting.)</p>
  
  <p>Thank you very much for any help,</p>
  
  <p>Michael</p>