Skip to content

Commit 594bcc7

Browse files
Aslam97bdbch
authored andcommitted
chore: Update link and suggestion doc to include the new options (#299)
1 parent 16ce6f0 commit 594bcc7

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.changeset/many-bugs-joke.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+
Update link and suggestion doc to include the new options

src/content/editor/api/utilities/suggestion.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ A CSS class that should be added to the suggestion.
6767

6868
Default: `'suggestion'`
6969

70+
### decorationContent
71+
72+
The content that should be rendered in the suggestion decoration.
73+
74+
Default: `''`
75+
76+
### decorationEmptyClass
77+
78+
A CSS class that should be added to the suggestion when it is empty.
79+
80+
Default: `'is-empty'`
81+
7082
### command
7183

7284
Executed when a suggestion is selected.

src/content/editor/extensions/marks/link.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ Link.configure({
8989
})
9090
```
9191

92+
### enableClickSelection
93+
94+
If enabled, clicking on a link will select the link.
95+
96+
Default: `false`
97+
98+
```js
99+
Link.configure({
100+
enableClickSelection: true,
101+
})
102+
```
103+
92104
### linkOnPaste
93105

94106
Adds a link to the current selection if the pasted content only contains an url.

0 commit comments

Comments
 (0)