mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
2c73687083
commit
418fc1df89
5 changed files with 103 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ import {removeBlock} from "../../wysiwyg/remove";
|
|||
import {getEditorRange} from "../../util/selection";
|
||||
import {avRender} from "./render";
|
||||
import {setPageSize} from "./row";
|
||||
import {openSearchAV} from "./relation";
|
||||
|
||||
export const openMenuPanel = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -738,6 +739,12 @@ export const openMenuPanel = (options: {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goSearchAV") {
|
||||
openSearchAV();
|
||||
setPosition(menuElement, tabRect.right - menuElement.clientWidth, tabRect.bottom, tabRect.height);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goEditCol") {
|
||||
const editMenuElement = hasClosestByClassName(target, "b3-menu");
|
||||
if (editMenuElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue