| <!DOCTYPE html> |
| <html lang="ko"> |
| <head> |
| <meta charset="utf-8"> |
| <title>Quill</title> |
| <style> |
| |
| .ql-container { |
| height: 500px !important; |
| } |
| |
| .ql-editor { |
| height: 100% !important; |
| } |
| </style> |
| </head> |
| <body> |
| |
| <div id="contents"></div> |
| |
| |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.snow.css"> |
| |
| |
| <script src="https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.js"></script> |
| |
| <script> |
| const toolbarOptions = [ |
| ['bold', 'italic', 'underline', 'strike'], |
| ['blockquote', 'code-block'], |
| ['link', 'image', 'video', 'formula'], |
| |
| [{ 'header': 1 }, { 'header': 2 }], |
| [{ 'list': 'ordered'}, { 'list': 'bullet' }, { 'list': 'check' }], |
| [{ 'script': 'sub'}, { 'script': 'super' }], |
| [{ 'indent': '-1'}, { 'indent': '+1' }], |
| [{ 'direction': 'rtl' }], |
| |
| [{ 'size': ['small', false, 'large', 'huge'] }], |
| [{ 'header': [1, 2, 3, 4, 5, 6, false] }], |
| |
| [{ 'color': [] }, { 'background': [] }], |
| [{ 'font': [] }], |
| [{ 'align': [] }], |
| |
| ['clean'] |
| ]; |
| const quill = new Quill('#contents', { |
| modules: { |
| toolbar: toolbarOptions |
| }, |
| theme: 'snow' |
| }); |
| </script> |
| </body> |
| </html> |