diff --git a/.changeset/wet-terms-fetch.md b/.changeset/wet-terms-fetch.md new file mode 100644 index 000000000..899f3200f --- /dev/null +++ b/.changeset/wet-terms-fetch.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-placeholder": patch +--- + +add back `considerAsAny` type but mark it deprecated diff --git a/packages/extension-placeholder/src/placeholder.ts b/packages/extension-placeholder/src/placeholder.ts index ad0fb8638..08427a257 100644 --- a/packages/extension-placeholder/src/placeholder.ts +++ b/packages/extension-placeholder/src/placeholder.ts @@ -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.** *