Skip to content

Commit

Permalink
change to 'like this' because it is before the example instead of after
Browse files Browse the repository at this point in the history
  • Loading branch information
lode committed Aug 16, 2023
1 parent 1c7b40a commit 6065f08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/guide/custom-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You’ll learn how you start from scratch at the end, but you’ll need the same
## Extend existing extensions
Every extension has an `extend()` method, which takes an object with everything you want to change or add to it.

Let’s say, you’d like to change the keyboard shortcut for the bullet list. You should start with looking at the source code of the extension, in that case [the `BulletList` node](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-bullet-list/src/bullet-list.ts). For the bespoken example to overwrite the keyboard shortcut, your code could look like that:
Let’s say, you’d like to change the keyboard shortcut for the bullet list. You should start with looking at the source code of the extension, in that case [the `BulletList` node](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-bullet-list/src/bullet-list.ts). For the bespoken example to overwrite the keyboard shortcut, your code could look like this:

```js
// 1. Import the extension
Expand Down Expand Up @@ -65,7 +65,7 @@ The order in which extensions are loaded influences two things:
The [`Link`](/api/marks/link) mark for example has a higher priority, which means it will be rendered as `<a href="…"><strong>Example</strong></a>` instead of `<strong><a href="…">Example</a></strong>`.

### Settings
All settings can be configured through the extension anyway, but if you want to change the default settings, for example to provide a library on top of Tiptap for other developers, you can do it like that:
All settings can be configured through the extension anyway, but if you want to change the default settings, for example to provide a library on top of Tiptap for other developers, you can do it like this:

```js
import Heading from '@tiptap/extension-heading'
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ new Editor({
})
```

The rendered HTML will look like that:
The rendered HTML will look like this:

```html
<h1 class="my-custom-heading">Example Text</h1>
Expand Down

0 comments on commit 6065f08

Please sign in to comment.