title: Wordpress- list all posts like in editor on 'insert/edit link'
body: <p>I am writing a plugin and I want to create a list of posts/and pages the user can choose from that is <em>exactly</em> like the list you see when you click the 'link' button in the editor and twirl down 'Or link to existing content'- does anyone know where I can find/how to call the function that generates that?</p>
  
  <p>(I have asked this in the wordpress.stackexchange but I never seem to get anywhere posting there :( )</p>