MCPcopy Index your code
hub / github.com/TypeCellOS/BlockNote / focusOnEditor

Function focusOnEditor

tests/src/utils/editor.ts:4–7  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

2import { EDITOR_SELECTOR } from "./const.js";
3
4export async function focusOnEditor(page: Page) {
5 await page.waitForSelector(EDITOR_SELECTOR);
6 await page.click(EDITOR_SELECTOR);
7}
8
9export async function waitForSelectorInEditor(page: Page, selector: string) {
10 const editor = page.locator(EDITOR_SELECTOR);

Callers 15

copyPasteAllExternalFunction · 0.85
slashmenu.test.tsFile · 0.85
dragdrop.test.tsFile · 0.85
draghandle.test.tsFile · 0.85
tables.test.tsFile · 0.85
colors.test.tsFile · 0.85
theming.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected