mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2025-01-01 09:31:42 +00:00
fix simditor upload image problems
This commit is contained in:
parent
3c983af13a
commit
df3a76c7e4
@ -30,7 +30,6 @@
|
||||
Simditor.locale = 'en-US'
|
||||
this.editor = new Simditor({
|
||||
textarea: this.$refs.editor,
|
||||
placeholder: this.placeholder,
|
||||
toolbar: this.toolbar,
|
||||
pasteImage: true,
|
||||
markdown: true,
|
||||
@ -42,15 +41,13 @@
|
||||
leaveConfirm: 'Uploading is in progress, are you sure to leave this page?'
|
||||
}
|
||||
})
|
||||
this.editor.on('valuechanged', (e, src) => {
|
||||
this.currentValue = this.editor.getValue()
|
||||
})
|
||||
this.editor.on('decorate', (e, src) => {
|
||||
this.currentValue = this.editor.getValue()
|
||||
})
|
||||
let simditorBody = this.$el.parentNode.querySelector('.simditor-body')
|
||||
if (simditorBody !== undefined) {
|
||||
simditorBody.oninput = () => {
|
||||
this.currentValue = this.editor.getValue()
|
||||
}
|
||||
}
|
||||
|
||||
this.editor.setValue(this.value)
|
||||
},
|
||||
watch: {
|
||||
|
Loading…
Reference in New Issue
Block a user