diff --git a/src/components/scEditor/index.vue b/src/components/scEditor/index.vue
index 7719035d..9d771811 100644
--- a/src/components/scEditor/index.vue
+++ b/src/components/scEditor/index.vue
@@ -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
}
diff --git a/src/views/vab/editor.vue b/src/views/vab/editor.vue
index 4a5eb62b..d056c0d3 100644
--- a/src/views/vab/editor.vue
+++ b/src/views/vab/editor.vue
@@ -13,6 +13,7 @@
自定义工具栏,使用"|"竖杠分割,使用"\"斜杠分组,默认:'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'
+ 支持tinymce的其他配置项