title: Loading TinyMCE via ajax request using jQuery
body: <p>I'm using jQuery ajax function to dynamically load content from another file. I want to add TinyMCE editor to my page this way. Link to tiny_mce.js file and the editor initialization script should be included in the dynamically loaded file. The problem is that it's not working for me.</p>
  
  <p>Here is simple example of what I've want to do: <a href="http://www.darrarski.pl/TinyMCE_ajax/index.html" rel="nofollow">http://www.darrarski.pl/TinyMCE_ajax/index.html</a></p>
  
  <p>Here is file that is loaded via ajax: <a href="http://www.darrarski.pl/TinyMCE_ajax/editor.html" rel="nofollow">http://www.darrarski.pl/TinyMCE_ajax/editor.html</a></p>
  
  <p>If you open the second file directly in your browser, TinyMCE editor is working with no problem.</p>
  
  <p>Using Firebug console, you can see that tiny_mce.js is being successfully loaded. I've also added console.debug() is several places, so you can see, that script from ajax loaded file (editor.html) is being executed correctly and there are no errors.
  The link to the jQuery library in the second file is included only for testing reasons (so it will work when you access this file directly in your browser) and it's not necessary when loading editor via ajax.</p>
  
  <p>Please, help me solving this issue.</p>
  
  <p><strong>Update</strong>: I've found another WYSIWYG editor, that works the way I want, but it's not well documented and I'm afraid of using it because of lack of options that TinyMCE has. But maybe it will help someone with marking TinyMCE ajax initialization possible: </p>
  
  <p><a href="http://www.darrarski.pl/elRTE_ajax/index.html" rel="nofollow">http://www.darrarski.pl/elRTE_ajax/index.html</a></p>
  
  <p>Anyway, this is exactly behaviour that I want to achieve using TinyMCE.</p>