FIX Editor 上传图片自动转换相对路径,并且增加props options

This commit is contained in:
sc 2022-08-13 10:48:53 +08:00
parent cb164d6f0b
commit f367b3ad1a
2 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,10 @@
templates: {
type: Array,
default: () => []
},
options: {
type: Object,
default: () => {}
}
},
data() {
@ -86,6 +90,7 @@
quickbars_insert_toolbar: false,
image_caption: true,
image_advtab: true,
convert_urls: false,
images_upload_handler: function(blobInfo) {
return new Promise((resolve, reject) => {
const data = new FormData();
@ -113,7 +118,8 @@
},0)
}
})
}
},
...this.options
},
contentValue: this.modelValue
}

View File

@ -13,6 +13,7 @@
<el-descriptions-item label="toolbar">自定义工具栏使用"|"竖杠分割使用"\"斜杠分组默认'undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \
alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | pagebreak | \
image media table template preview | code selectall'</el-descriptions-item>
<el-descriptions-item label="options">支持tinymce的其他配置项</el-descriptions-item>
</el-descriptions>
</el-card>
</el-main>