mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
🚨
This commit is contained in:
parent
f28ce5a3b7
commit
5d6c71e35a
8 changed files with 40 additions and 46 deletions
|
|
@ -23,11 +23,7 @@ import * as dayjs from "dayjs";
|
|||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||
import {cancelSB, insertEmptyBlock, jumpToParentNext} from "../../block/util";
|
||||
import {countBlockWord} from "../../layout/status";
|
||||
/// #if !MOBILE
|
||||
import {openFileById} from "../../editor/util";
|
||||
/// #endif
|
||||
import {Constants} from "../../constants";
|
||||
import {openMobileFileById} from "../../mobile/editor";
|
||||
import {mathRender} from "../render/mathRender";
|
||||
import {duplicateBlock} from "../wysiwyg/commonHotkey";
|
||||
import {movePathTo} from "../../util/pathName";
|
||||
|
|
|
|||
|
|
@ -1935,7 +1935,7 @@ export class WYSIWYG {
|
|||
clientY: event.clientY
|
||||
});
|
||||
} else if (actionElement.parentElement.classList.contains("li")) {
|
||||
const actionId = actionElement.parentElement.getAttribute("data-node-id")
|
||||
const actionId = actionElement.parentElement.getAttribute("data-node-id");
|
||||
if (event.altKey && !protyle.disabled) {
|
||||
// 展开/折叠当前层级的所有列表项
|
||||
if (actionElement.parentElement.parentElement.classList.contains("protyle-wysiwyg")) {
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ const deleteBlock = (updateElements: Element[], id: string, protyle: IProtyle) =
|
|||
blockRender(protyle, item);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const updateBlock = (updateElements: Element[], protyle: IProtyle, operation: IOperation, focus: boolean) => {
|
||||
updateElements.forEach(item => {
|
||||
|
|
@ -363,7 +363,7 @@ const updateBlock = (updateElements: Element[], protyle: IProtyle, operation: IO
|
|||
updateEmbed(protyle, operation);
|
||||
// 更新 ws 引用块
|
||||
updateRef(protyle, operation.id);
|
||||
}
|
||||
};
|
||||
|
||||
// 用于推送和撤销
|
||||
export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: boolean) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue