From 17fc83766314fc3428a10fdfd8dee20e15de920c Mon Sep 17 00:00:00 2001 From: "1575321367@qq.com" Date: Mon, 8 Aug 2022 17:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90wangEditor5=20=E5=AF=8C?= =?UTF-8?q?=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 5 +- ruoyi-ui/src/components/WEditor/index.vue | 202 ++++++++++++++++++++++ ruoyi-ui/src/main.js | 1 + 3 files changed, 206 insertions(+), 2 deletions(-) create mode 100644 ruoyi-ui/src/components/WEditor/index.vue diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index a84dbf459..3516cf50e 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -36,6 +36,7 @@ }, "dependencies": { "@riophae/vue-treeselect": "0.4.0", + "@wangeditor/editor-for-vue": "^1.0.2", "axios": "0.24.0", "clipboard": "2.0.8", "core-js": "3.19.1", @@ -51,7 +52,7 @@ "quill": "1.3.7", "screenfull": "5.0.2", "sortablejs": "1.10.2", - "vue": "2.6.12", + "vue": "2.6.14", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", "vue-meta": "2.4.0", @@ -76,7 +77,7 @@ "sass-loader": "10.1.1", "script-ext-html-webpack-plugin": "2.1.5", "svg-sprite-loader": "5.1.1", - "vue-template-compiler": "2.6.12" + "vue-template-compiler": "2.6.14" }, "engines": { "node": ">=8.9", diff --git a/ruoyi-ui/src/components/WEditor/index.vue b/ruoyi-ui/src/components/WEditor/index.vue new file mode 100644 index 000000000..568755ce3 --- /dev/null +++ b/ruoyi-ui/src/components/WEditor/index.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index caf30d747..8747b6eff 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -25,6 +25,7 @@ import Pagination from "@/components/Pagination"; import RightToolbar from "@/components/RightToolbar" // 富文本组件 import Editor from "@/components/Editor" +import Editor from "@/components/WEditor" // 文件上传组件 import FileUpload from "@/components/FileUpload" // 图片上传组件