1、实现文章阅读、附件功能

2、实现与关联项目同步功能
3、实现附件删除功能
This commit is contained in:
lifei6671
2018-07-18 17:10:24 +08:00
parent 86637ef581
commit 2416af4528
15 changed files with 653 additions and 31 deletions

View File

@@ -146,4 +146,19 @@ $(function () {
}
window.isLoad = false;
}
/**
* 打开文档模板
*/
$("#documentTemplateModal").on("click", ".section>a[data-type]", function () {
var $this = $(this).attr("data-type");
var body = $("#template-" + $this).html();
if (body) {
window.isLoad = true;
window.editor.clear();
window.editor.insertValue(body);
window.editor.setCursor({ line: 0, ch: 0 });
resetEditorChanged(true);
}
$("#documentTemplateModal").modal('hide');
});
});