mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
59ff5bd547
commit
056c136bc1
5 changed files with 9 additions and 5 deletions
|
|
@ -349,7 +349,7 @@ export const updatePanelByEditor = (protyle?: IProtyle, focus = true, pushBackSt
|
|||
};
|
||||
|
||||
export const isCurrentEditor = (blockId: string) => {
|
||||
const activeElement = document.querySelector(".layout__wnd--active > .layout-tab-bar > .item--focus");
|
||||
const activeElement = document.querySelector(".layout__wnd--active > .fn__flex > .layout-tab-bar > .item--focus");
|
||||
if (activeElement) {
|
||||
const tab = getInstanceById(activeElement.getAttribute("data-id"));
|
||||
if (tab instanceof Tab && tab.model instanceof Editor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue