Skip to content

Commit 0a02d73

Browse files
committed
chore: 升级quill版本至2.0.2
1 parent 8ab4207 commit 0a02d73

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ruoyi-fastapi-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"js-cookie": "3.0.1",
5252
"jsencrypt": "3.0.0-rc.1",
5353
"nprogress": "0.2.0",
54-
"quill": "1.3.7",
54+
"quill": "2.0.2",
5555
"screenfull": "5.0.2",
5656
"sortablejs": "1.10.2",
5757
"viser-vue": "^2.4.8",

ruoyi-fastapi-frontend/src/components/Editor/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default {
108108
if (val !== this.currentValue) {
109109
this.currentValue = val === null ? "" : val;
110110
if (this.Quill) {
111-
this.Quill.pasteHTML(this.currentValue);
111+
this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue);
112112
}
113113
}
114114
},
@@ -136,7 +136,7 @@ export default {
136136
}
137137
});
138138
}
139-
this.Quill.pasteHTML(this.currentValue);
139+
this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue);
140140
this.Quill.on("text-change", (delta, oldDelta, source) => {
141141
const html = this.$refs.editor.children[0].innerHTML;
142142
const text = this.Quill.getText();

ruoyi-fastapi-frontend/vue.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
lintOnSave: process.env.NODE_ENV === 'development',
2828
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
2929
productionSourceMap: false,
30+
transpileDependencies: ['quill'],
3031
// webpack-dev-server 相关配置
3132
devServer: {
3233
host: '0.0.0.0',

0 commit comments

Comments
 (0)