Skip to content

Commit

Permalink
Update usage in README
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 23, 2024
1 parent d81fcbc commit 87a75c8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,7 @@ import { createEditor } from '@chordbook/editor'

createEditor({
parent: document.querySelector('#editor'),
state: {
doc: "Initial content",
events: {
onChange: (doc, viewUpdate) => console.log("onChange", doc, viewUpdate),
onChangeInterval: 500, // onChange events are debounced by default (300ms)
onFocus: viewUpdate => console.log("onFocus", viewUpdate),
onBlur: viewUpdate => console.log("onBlur", viewUpdate),
onPaste: (event, view) => console.log("onPaste", event, view)
}
}
doc: "Initial content"
})
```

Expand Down

0 comments on commit 87a75c8

Please sign in to comment.