zweizhao 7 лет назад
Родитель
Сommit
a5d7ab7c31
4 измененных файлов с 4787 добавлено и 241 удалено
  1. 4782 239
      package-lock.json
  2. 1 0
      package.json
  3. 2 1
      pages/main/index/cert_edit.vue
  4. 2 1
      plugins/quill.js

Разница между файлами не показана из-за своего большого размера
+ 4782 - 239
package-lock.json


+ 1 - 0
package.json

@@ -23,6 +23,7 @@
     "dayjs": "^1.8.6",
     "dayjs": "^1.8.6",
     "element-ui": "^2.4.6",
     "element-ui": "^2.4.6",
     "nuxt": "^2.0.0",
     "nuxt": "^2.0.0",
+    "quill-image-resize-module-mended": "^3.1.2",
     "vue-quill-editor": "^3.0.6"
     "vue-quill-editor": "^3.0.6"
   },
   },
   "devDependencies": {
   "devDependencies": {

+ 2 - 1
pages/main/index/cert_edit.vue

@@ -104,7 +104,8 @@ export default {
             [{ 'font': [] }],
             [{ 'font': [] }],
             ['clean'],                                         // remove formatting button
             ['clean'],                                         // remove formatting button
             ['link', 'image'],
             ['link', 'image'],
-          ]
+          ],
+          ImageResize: {}
         }
         }
       },
       },
       ruleForm: null,
       ruleForm: null,

+ 2 - 1
plugins/quill.js

@@ -2,6 +2,7 @@ import Vue from 'vue'
 import VueQuillEditor from 'vue-quill-editor'
 import VueQuillEditor from 'vue-quill-editor'
 import 'quill/dist/quill.core.css'
 import 'quill/dist/quill.core.css'
 import 'quill/dist/quill.snow.css'
 import 'quill/dist/quill.snow.css'
-// import 'quill/dist/quill.bubble.css'
+import ImageResize from 'quill-image-resize-module-mended'
+VueQuillEditor.Quill.register('modules/ImageResize', ImageResize)
 
 
 Vue.use(VueQuillEditor)
 Vue.use(VueQuillEditor)