(content: JSONContent)
| 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({ |
no test coverage detected