NEZ-2227 feat:text chart 富文本编辑器支持插入图片
This commit is contained in:
@@ -54,7 +54,6 @@ export default {
|
||||
// 覆盖默认上传图片
|
||||
const toolbar = this.quill.getModule('toolbar')
|
||||
toolbar.addHandler('image', (value) => {
|
||||
this.uploadType = 'image'
|
||||
if (value) {
|
||||
this.$refs.upload.$children[0].$refs.input.click()
|
||||
} else {
|
||||
@@ -106,6 +105,7 @@ export default {
|
||||
},
|
||||
// 上传图片
|
||||
async uploadChange (file) {
|
||||
// 图片小于4M
|
||||
const isLt4M = (file.size / 1024 / 1024) < 4
|
||||
if (isLt4M) {
|
||||
console.log(this.$axios.defaults.baseURL + 'file/download/')
|
||||
@@ -142,6 +142,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
.rich-text-editor .ql-editor{
|
||||
overflow: auto !important;
|
||||
}
|
||||
|
||||
@@ -416,7 +416,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user