FIX Editor 上传图片自动转换相对路径,并且增加props options
This commit is contained in:
parent
cb164d6f0b
commit
f367b3ad1a
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue