mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
128b9d1f13
commit
e35b203201
1 changed files with 2 additions and 2 deletions
|
|
@ -234,11 +234,11 @@ const getActiveEditor = (wndActive = true) => {
|
||||||
}
|
}
|
||||||
if (!editor && !wndActive) {
|
if (!editor && !wndActive) {
|
||||||
let activeTime = 0;
|
let activeTime = 0;
|
||||||
editor = allEditor.find(item => {
|
allEditor.forEach(item => {
|
||||||
const headerElement = item.protyle?.model.parent.headElement;
|
const headerElement = item.protyle?.model.parent.headElement;
|
||||||
if (headerElement && headerElement.classList.contains("item--focus") && parseInt(headerElement.dataset.activetime) > activeTime) {
|
if (headerElement && headerElement.classList.contains("item--focus") && parseInt(headerElement.dataset.activetime) > activeTime) {
|
||||||
activeTime = parseInt(headerElement.dataset.activetime);
|
activeTime = parseInt(headerElement.dataset.activetime);
|
||||||
return true;
|
editor = item;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue