MCPcopy Create free account
hub / github.com/TypeCellOS/BlockNote / copyPaste

Function copyPaste

tests/src/utils/copypaste.ts:5–11  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

3import { focusOnEditor } from "./editor.js";
4
5export async function copyPaste(page: Page) {
6 await page.keyboard.press(`ControlOrMeta+C`);
7 // Exit out of any menus/toolbars which may block the trailing block.
8 await page.keyboard.press(`Escape`);
9 await page.locator(".bn-trailing-block").click();
10 await page.keyboard.press(`ControlOrMeta+V`);
11}
12
13export async function copyPasteAll(page: Page) {
14 await page.keyboard.press(`ControlOrMeta+A`);

Callers 2

copyPasteAllFunction · 0.85
copypaste.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected