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

Function createEmptyEditor

packages/editor/src/extensions/container.spec.tsx:837–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

835 });
836
837 function createEmptyEditor() {
838 editor = new Editor({ extensions: [StarterKit] });
839 editor.view.dispatch(editor.state.tr);
840 return editor;
841 }
842
843 it('parses Container component HTML as a container node', async () => {
844 const ed = createEmptyEditor();

Callers 1

container.spec.tsxFile · 0.85

Calls 1

dispatchMethod · 0.80

Tested by

no test coverage detected