tianyun 1 år sedan
förälder
incheckning
59085daced
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. 5 1
      simple-demo/edit_online.html

+ 5 - 1
simple-demo/edit_online.html

@@ -76,7 +76,11 @@
     const quill = new Quill('#editor', {
     const quill = new Quill('#editor', {
         theme: 'snow', // 指定使用的主题
         theme: 'snow', // 指定使用的主题
         modules: {
         modules: {
-            toolbar: false
+            // toolbar: false
+            toolbar: [
+                [{'header': [1, 2, false]}, 'bold', 'italic', 'blockquote', 'code-block', 'link'],
+                [{'list': 'ordered'}, {'list': 'bullet'}, {'indent': '-1'}, {'indent': '+1'}, 'image', 'video'],
+            ]
         }
         }
     });
     });