@tiptap/extension-character-count
Advanced tools
Comparing version 2.0.0-beta.22 to 2.0.0-beta.23
@@ -7,3 +7,3 @@ import { Extension } from '@tiptap/core'; | ||
*/ | ||
limit: number; | ||
limit: number | null | undefined; | ||
/** | ||
@@ -10,0 +10,0 @@ * The mode by which the size is calculated. Defaults to 'textSize'. |
{ | ||
"name": "@tiptap/extension-character-count", | ||
"description": "font family extension for tiptap", | ||
"version": "2.0.0-beta.22", | ||
"version": "2.0.0-beta.23", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "53213439b5ff1f4b6ec5f258d84cf7b8ec594b51" | ||
"gitHead": "0e0cdc053f067a5edcf179fbd55063da20806bff" | ||
} |
@@ -9,3 +9,3 @@ import { Extension } from '@tiptap/core' | ||
*/ | ||
limit: number, | ||
limit: number | null | undefined, | ||
/** | ||
@@ -39,3 +39,3 @@ * The mode by which the size is calculated. Defaults to 'textSize'. | ||
return { | ||
limit: 0, | ||
limit: null, | ||
mode: 'textSize', | ||
@@ -85,3 +85,3 @@ } | ||
// Nothing has changed or no limit is defined. Ignore it. | ||
if (!transaction.docChanged || limit === 0) { | ||
if (!transaction.docChanged || limit === 0 || limit === null || limit === undefined) { | ||
return true | ||
@@ -88,0 +88,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1901087