quickstart.mdx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. title: Quickstart
  3. ---
  4. The best way to get started is to try a simple example. Quill is initialized with a DOM element to contain the editor. The contents of that element will become the initial contents of Quill.
  5. <Sandpack files={{
  6. "/index.html": `
  7. <!-- Include stylesheet -->
  8. <link href="{{site.cdn}}/quill.snow.css" rel="stylesheet" />
  9. <!-- Create the editor container -->
  10. <div id="editor">
  11. <p>Hello World!</p>
  12. <p>Some initial <strong>bold</strong> text</p>
  13. <p><br /></p>
  14. </div>
  15. <!-- Include the Quill library -->
  16. <script src="{{site.cdn}}/quill.js"></script>
  17. <!-- Initialize Quill editor -->
  18. <script>
  19. const quill = new Quill('#editor', {
  20. theme: 'snow'
  21. });
  22. </script>`
  23. }}/ >
  24. And that's all there is to it!
  25. ## Next Steps
  26. The real magic of Quill comes in its flexibility and extensibility. You can get an idea of what is possible by playing around with the demos throughout this site or head straight to the [Interactive Playground](/playground/). For an in-depth walkthrough, take a look at [How to Customize Quill](/guides/how-to-customize-quill/).