-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
我在这里加了控制台输出:
const getActiveEditor = (wndActive = true) => {
let editor;
/// #if !MOBILE
const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : null;
const allEditor = getAllEditor();
if (range) {
editor = allEditor.find(item => {
if (item.protyle.element.contains(range.startContainer)) {
console.log("range 0", range);
console.log("editor 0", item);
return true;
}
});
}
......
如录屏所示,select-opened-doc插件获取到的不是当前打开的页签:
video.webm
应该优先判断页签的时间才对
Metadata
Metadata
Assignees
Labels
No labels