(content?: Record<string, unknown>)
| 4 | import { setTextAlignment } from './set-text-alignment'; |
| 5 | |
| 6 | function createEditor(content?: Record<string, unknown>) { |
| 7 | return new Editor({ |
| 8 | extensions: [ |
| 9 | StarterKit, |
| 10 | AlignmentAttribute.configure({ |
| 11 | types: ['heading', 'paragraph'], |
| 12 | }), |
| 13 | ], |
| 14 | content: content ?? undefined, |
| 15 | }); |
| 16 | } |
| 17 | |
| 18 | const PARAGRAPH_DOC = { |
| 19 | type: 'doc', |
no test coverage detected