title: ace editor get position of all the selected text/word
body: <p>How to get the position of all selected(Highlighted) words in ace editor </p>
  
  <p>I'm using ui-ace(angular module for ace editor), when i try to get the position of all selected texts using getSelection API, it returns only the last selected element position</p>
  
  <p>I was using the below API</p>
  
  <pre><code>editor.getSelectionRange()
  </code></pre>
  
  <p>View HTML is </p>
  
  <pre><code>      &lt;pre ui-ace="{ useWrapMode : true,
                                showGutter: false,
                                theme: 'textmate',
                                onLoad: aceLoaded,
                                onBlur: aceBlur}" ng-model="configVm.config"
  
             style="height: 250px" &gt;
  </code></pre>
  
  <p>Is there an API to get all the selected words positions?</p>