mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-06 23:51:48 +01:00
fix: 改进在反链面板中全选 (#13985)
* fix: 改进在反链面板中全选 fix https://github.com/siyuan-note/siyuan/issues/13874 * fix: 改进在反链面板中全选 fix https://github.com/siyuan-note/siyuan/issues/13874
This commit is contained in:
parent
a598f0e0ad
commit
923b8c7e37
1 changed files with 5 additions and 2 deletions
|
|
@ -114,8 +114,11 @@ export const selectAll = (protyle: IProtyle, nodeElement: Element, range: Range)
|
|||
hideElements(["select"], protyle);
|
||||
const ids: string [] = [];
|
||||
Array.from(protyle.wysiwyg.element.children).forEach(item => {
|
||||
item.classList.add("protyle-wysiwyg--select");
|
||||
ids.push(item.getAttribute("data-node-id"));
|
||||
const nodeId = item.getAttribute("data-node-id");
|
||||
if (nodeId) {
|
||||
item.classList.add("protyle-wysiwyg--select");
|
||||
ids.push(nodeId);
|
||||
}
|
||||
});
|
||||
countBlockWord(ids, protyle.block.rootID);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue