Browse Source

粘贴上传

gks 1 year ago
parent
commit
3e44a14be7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/editor.vue

+ 2 - 1
src/components/editor.vue

@@ -26,11 +26,12 @@ export default {
           'fullscreen preview code | undo redo | lineheight bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | numlist bullist | upfile image axupimgs media importword table | formatselect fontselect fontsizeselect forecolor backcolor | indent outdent | superscript subscript | removeformat | wordcount | help',
         toolbar_drawer: 'sliding',
         quickbars_selection_toolbar: 'removeformat | bold italic underline strikethrough | fontsizeselect forecolor backcolor',
-        plugins: 'preview code lineheight wordcount upfile image axupimgs imagetools media importword table lists fullscreen quickbars help',
+        plugins: 'paste preview code lineheight wordcount upfile image axupimgs imagetools media importword table lists fullscreen quickbars help',
         language: 'zh_CN',
         content_style: 'img {max-width:100%;}', //编辑器内限制图片大小
         convert_urls: false,
         height: this.height,
+        paste_data_images: true,
         //图片上传
         images_upload_handler: (blobInfo, succFun, failFun) => {
           let formData = new FormData();