mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 19:07:56 +08:00
实现文档历史功能
This commit is contained in:
@@ -9,24 +9,18 @@ $(function () {
|
||||
"editor" : "wangEditor"
|
||||
};
|
||||
wangEditor.config.menus.splice(0,0,"|");
|
||||
wangEditor.config.menus.splice(0,0,"history");
|
||||
wangEditor.config.menus.splice(0,0,"save");
|
||||
wangEditor.config.menus.splice(0,0,"release");
|
||||
wangEditor.config.menus.splice(29,0,"attach")
|
||||
|
||||
//移除地图、背景色
|
||||
editor.config.menus = $.map(wangEditor.config.menus, function(item, key) {
|
||||
if (item === 'bgcolor') {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (item === 'fullscreen') {
|
||||
return null;
|
||||
}
|
||||
if (item === "undo"){
|
||||
return null;
|
||||
}
|
||||
if (item === "redo"){
|
||||
return null;
|
||||
}
|
||||
|
||||
return item;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user