diff --git a/template/app_doc/editor/create_doc.html b/template/app_doc/editor/create_doc.html index 96c5822..5ca6873 100644 --- a/template/app_doc/editor/create_doc.html +++ b/template/app_doc/editor/create_doc.html @@ -348,7 +348,7 @@ if(editor_mode == 1){ editor.insertValue(r.data); }else if(editor_mode == 2){ - editor.setValue(r.data); + editor.insertValue(r.data); } layer.closeAll() }else{ diff --git a/template/app_doc/editor/modify_doc.html b/template/app_doc/editor/modify_doc.html index 85c32d4..ea91b5d 100644 --- a/template/app_doc/editor/modify_doc.html +++ b/template/app_doc/editor/modify_doc.html @@ -343,7 +343,11 @@ layer.load(); $.post("{% url 'get_doctemp' %}",{'doctemp_id':doctemp_id},function(r){ if(r.status){ - editor.insertValue(r.data); + if(editor_mode == 1){ + editor.insertValue(r.data); + }else if(editor_mode == 2){ + editor.insertValue(r.data); + } layer.closeAll() }else{ layer.closeAll("loading"); diff --git a/template/app_doc/editor/tpl_editor_vditor.html b/template/app_doc/editor/tpl_editor_vditor.html index c76fbbd..95e516a 100644 --- a/template/app_doc/editor/tpl_editor_vditor.html +++ b/template/app_doc/editor/tpl_editor_vditor.html @@ -197,6 +197,9 @@ "width":'100%', "mode":vditor_mode, // 编辑器模式 "placeholder":"道友,开始吧……", + "outline":{ + enable:true, + }, "counter":{ enable:true, // 启用计数 },