title: Embed and render Twitter/Instagram post inside TinyMCE using jQuery/PHP
body: <p>I am creating a website using PHP/CodeIgniter. I have a TinyMCE text editor inside a view and want to paste a Twitter or Instagram URL into the editor and using that URL, embed it and render it in text editor. For example:</p>
  
  <p>Instagram URL: <a href="https://www.instagram.com/p/BeA2XEHjQJ5/?hl=en&amp;taken-by=iamsrk" rel="nofollow noreferrer">https://www.instagram.com/p/BeA2XEHjQJ5/?hl=en&amp;taken-by=iamsrk</a></p>
  
  <p>Twitter URL: <a href="https://twitter.com/iamsrk/status/947915219648487424" rel="nofollow noreferrer">https://twitter.com/iamsrk/status/947915219648487424</a></p>
  
  <p>In WordPress, if I just paste these URLs into the text editor, it will convert and render it. I want exactly the same thing.</p>