mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-14 23:22:40 +00:00
主题优化
This commit is contained in:
@@ -223,11 +223,17 @@ var Resize = {
|
||||
},
|
||||
|
||||
// mdeditor
|
||||
resizeMDInterval: null,
|
||||
resizeMdColumns: function(event) {
|
||||
var self = this;
|
||||
if (self.mdLineMove) {
|
||||
var mdEditorWidth = event.clientX - self.leftColumn.offset().left; // self.leftNotebook.width() - self.noteList.width();
|
||||
self.setMdColumnWidth(mdEditorWidth);
|
||||
|
||||
clearInterval(self.resizeMDInterval);
|
||||
self.resizeMDInterval = setTimeout(function () {
|
||||
MD.aceEditor && MD.aceEditor.resize();
|
||||
}, 50);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2134,3 +2140,8 @@ $(function() {
|
||||
initUploadImage();
|
||||
Writting.init();
|
||||
});
|
||||
|
||||
// markdown editor v2
|
||||
LEA.canSetMDModeFromStorage = function () {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user