Commit b089867e authored by Van's avatar Van

🐛 #12720

parent d86f7da4
...@@ -63,7 +63,7 @@ $.extend(Page.prototype, { ...@@ -63,7 +63,7 @@ $.extend(Page.prototype, {
return return
} }
if (typeof vditor === 'undefined') { if (!$('#soloEditorComment').hasClass('vditor')) {
var that = this var that = this
Util.addScript(Label.staticServePath + '/js/lib/vditor-1.1.10/index.min.js', 'vditorScript') Util.addScript(Label.staticServePath + '/js/lib/vditor-1.1.10/index.min.js', 'vditorScript')
window.vditor = new Vditor('soloEditorComment', { window.vditor = new Vditor('soloEditorComment', {
...@@ -303,6 +303,7 @@ $.extend(Page.prototype, { ...@@ -303,6 +303,7 @@ $.extend(Page.prototype, {
$('#soloEditorError').html(result.msg) $('#soloEditorError').html(result.msg)
return return
} }
debugger
that.toggleEditor() that.toggleEditor()
vditor.setValue('') vditor.setValue('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment