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

Method copyCodeBlock

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

* 复制代码块到剪贴板

()

Source from the content-addressed store, hash-verified

1156 * 复制代码块到剪贴板
1157 */
1158 private copyCodeBlock(): void {
1159 navigator.clipboard.writeText(this.cm.state.doc.toString());
1160 }
1161
1162 /**
1163 * 显示右键菜单

Callers 2

createHeaderMethod · 0.95
showContextMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected