From 82735f680886814180a5b858470eaadd7703d29b Mon Sep 17 00:00:00 2001 From: Benjamin Kroeger Date: Fri, 14 Oct 2022 13:08:53 +0200 Subject: [PATCH] adds docs for whenNotEditable --- docs/api/marks/link.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/api/marks/link.md b/docs/api/marks/link.md index 4182c72763f..6cd68b9b0fe 100644 --- a/docs/api/marks/link.md +++ b/docs/api/marks/link.md @@ -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.