title: Inserting text in TinyMCE Editor where the cursor is
body: <p>I've been trying to insert text into the TinyMCE Editor at the focused paragraph element (<code>&lt;p&gt;</code>) exactly where the cursor is but got no luck!!</p>
  
  <pre><code>var elem = tinyMCE.activeEditor.dom.get('tinymce');
  var child = elem.firstChild;
  while (child) {
      if (child.focused) {
          $(child).insertAtCaret("some text");
      }
      child = child.nextSibling;
  }
  </code></pre>
  
  <p>If anyone has any idea on how to solve this I'll be very thankful.</p>