Skip to content

Commit 951c2bc

Browse files
docs(selection): fix className documentation (#418)
Co-authored-by: Jan Thurau <[email protected]>
1 parent 0921c32 commit 951c2bc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/many-nails-argue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tiptap-docs': patch
3+
---
4+
5+
Fix Selection extension className documentation

src/content/editor/extensions/functionality/selection.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ new Editor({
5050

5151
### className
5252

53-
The class that is applied to the focused element.
53+
The class that is applied to the current selection.
5454

55-
Default: `'has-focus'`
55+
Default: `'selection'`
5656

5757
```js
5858
Selection.configure({
59-
className: 'focus',
59+
className: 'selection',
6060
})
6161
```
6262

0 commit comments

Comments
 (0)