// ProseMirror import { EditorState } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; import { Schema } from 'prosemirror-model'; // ... 100+ lines of setup // SuperDoc import { SuperDoc } from '@harbour-enterprises/superdoc'; const superdoc = new SuperDoc({ selector: '#editor', document: 'document.docx' });
superdoc.on('editorCreate', ({ editor }) => { const view = editor.view; // ProseMirror EditorView const state = view.state; // ProseMirror EditorState const schema = state.schema; // ProseMirror Schema });
Was this page helpful?