修改问题知识库的富文本粘贴图片
This commit is contained in:
+8
-13
@@ -308,7 +308,7 @@
|
||||
},
|
||||
isDisplay: false,
|
||||
disabled: false,
|
||||
content: '<h2>I am Example</h2>'
|
||||
content: '<h2>I am Example</h2>',
|
||||
projectNameList: [
|
||||
{
|
||||
value: 'Open',
|
||||
@@ -318,7 +318,7 @@
|
||||
value: 'Privacy',
|
||||
name: this.$t('Privacy')
|
||||
}
|
||||
],
|
||||
]
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -359,7 +359,7 @@
|
||||
}
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.data.success){
|
||||
if (res.data.success) {
|
||||
let quill = this.$refs.myQuillEditor.quill
|
||||
let length = quill.getSelection().index
|
||||
let fileName = res.data.result.fileName
|
||||
@@ -444,20 +444,17 @@
|
||||
},
|
||||
backClick() {
|
||||
this.$router.go(-1)
|
||||
}
|
||||
,
|
||||
},
|
||||
showPermissionsChange(event, name) {
|
||||
if (event == 'Open') {
|
||||
this.isDisplay = false
|
||||
} else {
|
||||
this.isDisplay = true
|
||||
}
|
||||
}
|
||||
,
|
||||
},
|
||||
onEditorBlur(quill) {
|
||||
console.log('editor blur!', quill)
|
||||
}
|
||||
,
|
||||
},
|
||||
onEditorFocus(quill) {
|
||||
console.log('editor focus!', quill)
|
||||
},
|
||||
@@ -517,8 +514,7 @@
|
||||
this.$refs.uploadFile.perentHandleFunc()
|
||||
}
|
||||
})
|
||||
}
|
||||
,
|
||||
},
|
||||
/** 上传文件的回调 */
|
||||
uploadSuccess(data) {
|
||||
let attIdList = []
|
||||
@@ -530,8 +526,7 @@
|
||||
/** 赋值给当前对应的表单文件 */
|
||||
this.formInline[this.uploadName] = attIdList.join(',')
|
||||
this.formInline = { ...this.formInline }
|
||||
}
|
||||
,
|
||||
},
|
||||
submit() {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
|
||||
Reference in New Issue
Block a user