title: How can I add the wp_editor in Wordpress with jQuery to my frontend?
body: <p>I need to add the wp_editor with a jQuery function to a div in my frontend. This is my code but I'm struggling with the editor part. This is my code:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class"text"&gt;
          Some text in this div here blub bla bli blu 
      &lt;/div&gt;
      &lt;div class"edit-button"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  
  jQuery('.edit-button').click(function () {
         var description = jQuery('.text');
         var description_content = description.text();
  
         //Hide the description in the frontend
         jQuery(description).hide();
         jQuery('.edit-button').hide();
  
         //Create editor here, pre-fill the editor with the description text and display it inside of the &lt;div class="container"&gt;
  });
  </code></pre>
  
  <p>As you can see I've a container. In this container I have a text and a edit button. When a user clicks the edit button, I need to get the text from class"text", set it to the created wp_editor() and insert it in my container. After that I'll hide the text and the edit button. How can I do this? I've searched a lot and just found solution with "Set wp_editor() to textarea etc."</p>