Skip to content

Commit

Permalink
Merge pull request #89 from zachczx/patch-1
Browse files Browse the repository at this point in the history
Typo previously in the example. StarterKit should be in an array.
  • Loading branch information
marco-tiptap authored Jan 6, 2025
2 parents fae3bdf + a4a70f0 commit 475b3f5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/content/editor/getting-started/configure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ You can configure all extensions included in the [StarterKit](/editor/extensions
import StarterKit from '@tiptap/starter-kit'

new Editor({
extensions: StarterKit.configure({
heading: {
levels: [1, 2, 3],
},
}),
extensions: [
StarterKit.configure({
heading: {
levels: [1, 2, 3],
},
}),
],
})
```

Expand Down Expand Up @@ -140,4 +142,4 @@ import Strike from '@tiptap/extension-strike'
new Editor({
extensions: [StarterKit, Strike],
})
```
```

0 comments on commit 475b3f5

Please sign in to comment.