title: Inserting text following selection in Office-JS
body: <p>I am trying to append a hyperlink immediately following a piece of selected text in Word 2013 using the Shared JS API. </p>
  
  <p>Inserting the hyperlink using OOXML works fine when inserting at current cursor with no selection. My problem is 'finding' the end of the selected text to append the OOXML. </p>
  
  <p>Just using <code>setSelectedDataAsync</code> overwrites the existing text. I have tried reading the selected text as OOXML and concatenating the hyperlink XML to it but without success. </p>
  
  <p>I have not tried reading the current selection and then modifying that OOXML but would prefer to avoid. </p>
  
  <p>In the Word JS API a before and after are provided on the selection so it is straightforward to do. Is it possible to do this in the Shared API? Thanks.</p>