Skip to content

Commit

Permalink
adds docs for whenNotEditable
Browse files Browse the repository at this point in the history
  • Loading branch information
benkroeger committed Oct 14, 2022
1 parent 7c63570 commit 82735f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api/marks/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ Link.configure({
})
```

If set to `'whenNotEditable'`, links will be opened on click only when editor is not editable.

```js
Link.configure({
openOnClick: 'whenNotEditable',
})
```

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

Expand Down

0 comments on commit 82735f6

Please sign in to comment.