fix(placeholder): add back-compat to deprecated placeholder functionality (#5409)

This commit is contained in:
Nick Perez 2024-08-05 18:09:10 +02:00 committed by GitHub
parent 7c8889a2a6
commit c1ff1b0d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/extension-placeholder": patch
---
add back `considerAsAny` type but mark it deprecated

View File

@ -31,6 +31,12 @@ export interface PlaceholderOptions {
}) => string)
| string
/**
* See https://github.com/ueberdosis/tiptap/pull/5278 for more information.
* @deprecated This option is no longer respected and this type will be removed in the next major version.
*/
considerAnyAsEmpty?: boolean
/**
* **Checks if the placeholder should be only shown when the editor is editable.**
*