The Old Way
Manual Tiptap wiring
const editor = useEditor({
extensions: [
StarterKit,
Link.configure({ openOnClick: false }),
Placeholder.configure({ placeholder: 'Write...' }),
UniqueID.configure({ types: ['paragraph', 'heading', 'listItem'] }),
Table.configure({ resizable: true }),
],
content: initial,
onUpdate: ({ editor }) => setLocalState(editor.getJSON()),
editorProps: {
handleKeyDown(view, event) {
// custom glue code
},
},
})