diff --git a/packages/playground/src/examples/editor-example.tsx b/packages/playground/src/examples/editor-example.tsx index f300d05..3715d68 100644 --- a/packages/playground/src/examples/editor-example.tsx +++ b/packages/playground/src/examples/editor-example.tsx @@ -133,12 +133,12 @@ export function EditorExample({ } }), events: [ - onDocChange((_view, content) => { + onDocChange((_view, _state, content) => { const s = `Doc changes, current doc:\n\n${content}` console.log(s) setOutput(s) }), - onSelectionChange((view, sels) => { + onSelectionChange((view, _state, sels) => { if (sels.length === 0 || sels[0].from === sels[0].to) { return }