修改ice编辑器显示为content字段,pre_content字段用来纯文本做历史比对

This commit is contained in:
HuYang 2020-12-17 16:41:32 +08:00
parent 10b428ddf6
commit 730013251f
3 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@
{% block page_content %}
{% if doc.editor_mode == 3 %}
{{ doc.pre_content | safe }}
{{ doc.content | safe }}
{% else %}
<textarea style="display: none;">{{ doc.pre_content }}</textarea>
{% endif %}

View File

@ -309,7 +309,7 @@
var pre_content = editor.getValue()
}else if(editor_mode == 3){
var content = editor.getHTML()
var pre_content = editor.getHTML()
var pre_content = editor.getText()
}
var data = {
'project':$("#project").val(),

View File

@ -203,7 +203,7 @@
{% if editor_mode == 1 %}
<textarea style="display:none;">{{ doc.pre_content }}</textarea>
{% elif editor_mode == 3 %}
{{ doc.pre_content | safe }}
{{ doc.content | safe }}
{% else %}
{{ doc.pre_content }}
{% endif %}
@ -305,7 +305,7 @@
var pre_content = editor.getValue()
}else if(editor_mode == 3){
var content = editor.getHTML()
var pre_content = editor.getHTML()
var pre_content = editor.getText()
}
var data = {
'doc_id':'{{ doc.id }}',