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