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

Function createEditor

packages/editor/src/extensions/container.spec.tsx:86–93  ·  view source on GitHub ↗
(content: JSONContent)

Source from the content-addressed store, hash-verified

84 });
85
86 function createEditor(content: JSONContent) {
87 editor = new Editor({
88 content,
89 extensions: [StarterKit],
90 });
91 editor.view.dispatch(editor.state.tr);
92 return editor;
93 }
94
95 it('auto-inserts container node when editor initializes with plain content', () => {
96 createEditor({

Callers 1

container.spec.tsxFile · 0.70

Calls 1

dispatchMethod · 0.80

Tested by

no test coverage detected