MCPcopy Index your code
hub / github.com/resend/react-email / createEditor

Function createEditor

packages/editor/src/plugins/image/upload-flow.spec.ts:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}));
14
15function createEditor() {
16 const uploadImage = vi.fn().mockResolvedValue({ url: '' });
17 return new Editor({
18 extensions: [
19 StarterKit,
20 createImageExtension({ uploadImage }),
21 StyleAttribute.configure({ types: ['image'] }),
22 ],
23 });
24}
25
26function findImageNode(
27 editor: Editor,

Callers 1

Calls 2

createImageExtensionFunction · 0.90
configureMethod · 0.45

Tested by

no test coverage detected