mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-27 12:29:11 +08:00
1、实现富文本编辑器
2、实现文档转换为PDF、MOBI、EPUB格式
This commit is contained in:
@@ -88,7 +88,6 @@ function openDeleteDocumentDialog($node) {
|
||||
layer.close(index);
|
||||
if(res.errcode === 0){
|
||||
window.treeCatalog.delete_node($node);
|
||||
resetEditor($node);
|
||||
}else{
|
||||
layer.msg("删除失败",{icon : 2})
|
||||
}
|
||||
@@ -153,6 +152,24 @@ function pushVueLists($lists) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 发布项目
|
||||
*/
|
||||
function releaseBook() {
|
||||
$.ajax({
|
||||
url: window.releaseURL,
|
||||
data: { "identify": window.book.identify },
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
if (res.errcode === 0) {
|
||||
layer.msg("发布任务已推送到任务队列,稍后将在后台执行。");
|
||||
} else {
|
||||
layer.msg(res.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
//实现小提示
|
||||
$("[data-toggle='tooltip']").hover(function () {
|
||||
var title = $(this).attr('data-title');
|
||||
@@ -238,7 +255,6 @@ function uploadImage($id,$callback) {
|
||||
|
||||
var imageFile = clipboard.items[i].getAsFile();
|
||||
|
||||
console.log(imageFile)
|
||||
var fileName = Date.parse(new Date());
|
||||
|
||||
switch (imageFile.type){
|
||||
|
||||
Reference in New Issue
Block a user