title: TinyMCE. after adding span cannot continue typing out of it
body: <p>I am trying to create a plugin for TinyMCE, so user can add floating tips for selected area.
  All i need is to put selected content into span, i do it this way:</p>
  
  <pre><code>var formated = 
      '&lt;span id="tooltip_widget_' + id + '"&gt;'
      + selectedtext
      + '&lt;/span&gt;;
  ed.selection.setContent(formated);
  </code></pre>
  
  <p>And it works well in Firefox, i can add text to span and continue typing out of it.
  But in Chrome and IE all the following text goes into the added span. And the only way to continue typing out of it - via html editor.</p>
  
  <p>I tried include additional caret placeholder span after the insertion and collapse after it and then delete this placeholder to make sure the caret will be after the inserted span. </p>
  
  <p>But it doesn't help. In chrome and IE if caret is at the end of span, it continues typing inside this span.</p>
  
  <p>Please advice how to solve this.</p>