Skip to content

Commit

Permalink
fix(placeholder): add back-compat to deprecated placeholder functiona…
Browse files Browse the repository at this point in the history
…lity (#5409)
  • Loading branch information
nperez0111 authored Aug 5, 2024
1 parent 7c8889a commit c1ff1b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-terms-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/extension-placeholder": patch
---

add back `considerAsAny` type but mark it deprecated
6 changes: 6 additions & 0 deletions packages/extension-placeholder/src/placeholder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
*
Expand Down

0 comments on commit c1ff1b0

Please sign in to comment.