🎨 去除作品集/专题/标签界面编辑器文件上传功能

This commit is contained in:
ronger 2022-01-17 10:36:35 +08:00
parent 37b67ec651
commit 69e28b06ee
3 changed files with 3 additions and 24 deletions

View File

@ -187,7 +187,7 @@ export default {
'insert-before',
'insert-after',
'|',
'upload',
// 'upload',
// 'record',
'table',
'|',
@ -241,13 +241,6 @@ export default {
// Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor);
}
},
upload: {
max: 10 * 1024 * 1024,
url: this.tokenURL.URL,
linkToImgUrl: this.tokenURL.linkToImageURL,
token: this.tokenURL.token,
filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '')
},
height: data.height,
counter: 102400,
resize: {

View File

@ -189,7 +189,7 @@ export default {
'insert-before',
'insert-after',
'|',
'upload',
// 'upload',
// 'record',
'table',
'|',
@ -243,13 +243,6 @@ export default {
// Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor);
}
},
upload: {
max: 10 * 1024 * 1024,
url: this.tokenURL.URL,
linkToImgUrl: this.tokenURL.linkToImageURL,
token: this.tokenURL.token,
filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '')
},
height: data.height,
counter: 102400,
resize: {

View File

@ -194,7 +194,7 @@ export default {
'insert-before',
'insert-after',
'|',
'upload',
// 'upload',
// 'record',
'table',
'|',
@ -243,13 +243,6 @@ export default {
// Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor);
}
},
upload: {
max: 10 * 1024 * 1024,
url: this.tokenURL.URL,
linkToImgUrl: this.tokenURL.linkToImageURL,
token: this.tokenURL.token,
filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '')
},
height: data.height,
counter: 102400,
resize: {