title: How do I post contents of a Quill editor in a form?
body: <p>I have what I think is a very common scenario. I would normally have this form:</p>
  
  <pre><code>&lt;form method="post"&gt;
  
  &lt;textarea name="text"&gt;&lt;/textarea&gt;
  &lt;input type="submit" value="Save" /&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Then with PHP I would capture the data from the form ($_POST['text']) and I could use that in another variable. </p>
  
  <p>Now, I'd like to use <a href="https://quilljs.com/" rel="noreferrer">Quill</a> so users have a nice rich text editor instead. Quill seems very well suited for this and the documentation is very detailed. However, for some reason I can not find how I can "post" the data to the form. There is one <a href="https://codepen.io/anon/pen/VWeVMY" rel="noreferrer">single sample page</a> that sort of does what I want, but I am unable to fully implement this in my sample, and in the <a href="https://quilljs.com/docs/quickstart/" rel="noreferrer">quick start guide</a> this rather fundamental (to me) topic is not discussed, and I can not find this in the documentation either. </p>
  
  <p>Is Quill supposed to be used like this? Am I overseeing something? Is there a recommended way to make this work? </p>
  
  <p>This is what I currently have:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  &lt;meta charset="UTF-8" /&gt;
  &lt;link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form method="post"&gt;
  
  
  &lt;!-- Create the toolbar container --&gt;
  &lt;div id="toolbar"&gt;
    &lt;button class="ql-bold"&gt;Bold&lt;/button&gt;
    &lt;button class="ql-italic"&gt;Italic&lt;/button&gt;
  &lt;/div&gt;
  
  
  &lt;form method="post"&gt;
  
  &lt;!-- Create the editor container --&gt;
  &lt;div id="editor"&gt;
    &lt;p&gt;Hello World!&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;input type="submit" value="Save" /&gt;
  
  &lt;/form&gt;
  
  &lt;!-- Include the Quill library --&gt;
  &lt;script src="https://cdn.quilljs.com/1.0.0/quill.js"&gt;&lt;/script&gt;
  
  &lt;!-- Initialize Quill editor --&gt;
  &lt;script&gt;
    var editor = new Quill('#editor', {
      modules: { toolbar: '#toolbar' },
      theme: 'snow'
    });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>