mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 10:48:00 +08:00
1、实现文章阅读、附件功能
2、实现与关联项目同步功能 3、实现附件删除功能
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user