MCPcopy Create free account
hub / github.com/Auto-Plugin/milkup / hideContextMenu

Method hideContextMenu

src/core/nodeviews/code-block.ts:1315–1322  ·  view source on GitHub ↗

* 隐藏右键菜单

()

Source from the content-addressed store, hash-verified

1313 * 隐藏右键菜单
1314 */
1315 private hideContextMenu(): void {
1316 if (this.contextMenu) {
1317 this.contextMenu.remove();
1318 this.contextMenu = null;
1319 }
1320 // 移除其他可能存在的右键菜单
1321 document.querySelectorAll(".milkup-context-menu").forEach((el) => el.remove());
1322 }
1323
1324 /**
1325 * 设置主题观察器

Callers 3

showContextMenuMethod · 0.95
closeHandlerMethod · 0.95
destroyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected