mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 03:33:12 +08:00
fix(placeholder): add back-compat to deprecated placeholder functionality (#5409)
This commit is contained in:
parent
7c8889a2a6
commit
c1ff1b0d4d
5
.changeset/wet-terms-fetch.md
Normal file
5
.changeset/wet-terms-fetch.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tiptap/extension-placeholder": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
add back `considerAsAny` type but mark it deprecated
|
@ -31,6 +31,12 @@ export interface PlaceholderOptions {
|
|||||||
}) => string)
|
}) => string)
|
||||||
| 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.**
|
* **Checks if the placeholder should be only shown when the editor is editable.**
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user