@tiptap/extension-link
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -319,3 +319,3 @@ import { combineTransactionSteps, getChangedRanges, findChildrenInRange, getMarksBetween, getAttributes, Mark, mergeAttributes, markPasteRule } from '@tiptap/core'; | ||
} | ||
if (this.options.openOnClick) { | ||
if (this.options.openOnClick === true) { | ||
plugins.push(clickHandler({ | ||
@@ -322,0 +322,0 @@ type: this.type, |
@@ -321,3 +321,3 @@ (function (global, factory) { | ||
} | ||
if (this.options.openOnClick) { | ||
if (this.options.openOnClick === true) { | ||
plugins.push(clickHandler({ | ||
@@ -324,0 +324,0 @@ type: this.type, |
@@ -18,2 +18,6 @@ import { Mark } from '@tiptap/core'; | ||
export declare const pasteRegex: RegExp; | ||
/** | ||
* @deprecated The default behavior is now to open links when the editor is not editable. | ||
*/ | ||
type DeprecatedOpenWhenNotEditable = 'whenNotEditable'; | ||
export interface LinkOptions { | ||
@@ -41,5 +45,4 @@ /** | ||
* @example false | ||
* @example 'whenNotEditable' | ||
*/ | ||
openOnClick: boolean; | ||
openOnClick: boolean | DeprecatedOpenWhenNotEditable; | ||
/** | ||
@@ -102,1 +105,2 @@ * Adds a link to the current selection if the pasted content only contains an url. | ||
export declare const Link: Mark<LinkOptions, any>; | ||
export {}; |
{ | ||
"name": "@tiptap/extension-link", | ||
"description": "link extension for tiptap", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"homepage": "https://tiptap.dev", | ||
@@ -35,8 +35,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.5.2", | ||
"@tiptap/pm": "^2.5.2" | ||
"@tiptap/core": "^2.5.3", | ||
"@tiptap/pm": "^2.5.3" | ||
}, | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.5.2", | ||
"@tiptap/pm": "^2.5.2" | ||
"@tiptap/core": "^2.5.3", | ||
"@tiptap/pm": "^2.5.3" | ||
}, | ||
@@ -43,0 +43,0 @@ "repository": { |
@@ -30,2 +30,7 @@ import { | ||
/** | ||
* @deprecated The default behavior is now to open links when the editor is not editable. | ||
*/ | ||
type DeprecatedOpenWhenNotEditable = 'whenNotEditable'; | ||
export interface LinkOptions { | ||
@@ -55,5 +60,4 @@ /** | ||
* @example false | ||
* @example 'whenNotEditable' | ||
*/ | ||
openOnClick: boolean | ||
openOnClick: boolean | DeprecatedOpenWhenNotEditable | ||
/** | ||
@@ -274,3 +278,3 @@ * Adds a link to the current selection if the pasted content only contains an url. | ||
if (this.options.openOnClick) { | ||
if (this.options.openOnClick === true) { | ||
plugins.push( | ||
@@ -277,0 +281,0 @@ clickHandler({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
280778
5353