mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02: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) {
|
||||
let activeTime = 0;
|
||||
editor = allEditor.find(item => {
|
||||
allEditor.forEach(item => {
|
||||
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;
|
||||
editor = item;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue